O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSTextAttachment — Mac OS X 10.0

Synopsis

Instances of this class serve as values in an attributed string for the attribute NSAttachmentAttributeName. Text attachment cells are associated with an NSFileWrapper object that may represent either a file or a URL.

image with no caption

@interface NSTextAttachment : NSObject <NSCoding>
                                  // Initializers
   - (id)initWithFileWrapper:(NSFileWrapper *)fileWrapper;
                                  // Accessor Methods
   - (void)setFileWrapper:(NSFileWrapper *)fileWrapper;
   - (NSFileWrapper *)fileWrapper;
   - (void)setAttachmentCell:(id <NSTextAttachmentCell>)cell;
   - (id <NSTextAttachmentCell>)attachmentCell;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required