- Inherits from:
- NSObject
- Package:
- com.apple.yellow.application
NSTextAttachment objects are used by the NSAttributedString
class as the values for attachment attributes (stored in the attributed
string under the key named AttachmentAttributeName
).
The objects you create with this class are referred to as text attachment
objects, or when no confusion will result, as text attachments or
merely attachments. See the NSAttributedString and NSTextView class specifications
for general information on text attachments.
A text attachment object contains an NSFileWrapper, which in turn holds the contents of the attached file. It also uses a cell object conforming to the NSTextAttachmentCell protocol to draw and handle mouse events. Most of the behavior of a text attachment is relegated to the file wrapper and the attachment cell. See the corresponding class and protocol specifications for more information.
- Constructors
- NSTextAttachment
- Setting the file wrapper
- setFileWrapper
- fileWrapper
- Setting the attachment cell
- setAttachmentCell
- attachmentCell
public NSTextAttachment()
public NSTextAttachment(NSFileWrapper aWrapper)
See Also: setFileWrapper, setAttachmentCell
public NSCellForTextAttachment attachmentCell()
See Also: fileWrapper, image (NSCell), icon (NSFileWrapper), setAttachmentCell
public NSFileWrapper fileWrapper()
See Also: setFileWrapper
public void setAttachmentCell(NSCellForTextAttachment aCell)
See Also: setFileWrapper, setImage (NSCell), icon (NSFileWrapper), attachmentCell
public void setFileWrapper(NSFileWrapper aWrapper)
See Also: fileWrapper