Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Standard Attributes

The identifiers listed in Table 1 are global NSString constants containing the attribute names. The value class is the class of the value corresponding to that attribute.

Table 1  Table of standard attributes

Attribute Identifier

Value Class

Default Value

NSAttachmentAttributeName

NSTextAttachment

none (no attachment)

NSBackgroundColorAttributeName

NSColor

none (no background)

NSBaselineOffsetAttributeName

NSNumber, as a float

0.0

NSFontAttributeName

NSFont

Helvetica 12-point

NSForegroundColorAttributeName

NSColor

black

NSKernAttributeName

NSNumber, as a float

0.0

NSLigatureAttributeName

NSNumber, as an int

1 (standard ligatures)

NSLinkAttributeName

id

none (no link)

NSParagraphStyleAttributeName

NSParagraphStyle

(as returned by NSParagraphStyle’s defaultParagraphStyle method)

NSSuperscriptAttributeName

NSNumber, as an int

0

NSUnderlineStyleAttributeName

NSNumber, as an int

none (no underline)

The natures of several attributes are not obvious from name alone:



< Previous PageNext Page > Hide TOC


Last updated: 2007-06-04




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice