# NSTextAttachment

FredKiefer@gmx.de
Generated at 2026-02-17 21:02:56 +0000

Classes to represent text attachments.

2000 Free Software Foundation, Inc.
Software documentation for the NSTextAttachment class
AppKit/NSTextAttachment.h
NSCoding
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Description forthcoming.
attachmentCell
Description forthcoming.
fileWrapper
Description forthcoming.
initWithFileWrapper:
fileWrapper
Description forthcoming.
setAttachmentCell:
cell
Description forthcoming.
setFileWrapper:
fileWrapper
Description forthcoming.
Software documentation for the NSTextAttachmentCell class
AppKit/NSTextAttachment.h
NSTextAttachmentCell
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
Software documentation for the NSAttributedString(NSTextAttachment) category
AppKit/NSTextAttachment.h
Description forthcoming.
attributedStringWithAttachment:
attachment
Description forthcoming.
containsAttachments
Description forthcoming.
Software documentation for the NSMutableAttributedString(NSTextAttachment) category
AppKit/NSTextAttachment.h
Description forthcoming.
updateAttachmentsFromPath:
path
Description forthcoming.
Software documentation for the NSTextAttachmentCell protocol
AppKit/NSTextAttachment.h
NSObject
Description forthcoming.
attachment
Description forthcoming.
cellBaselineOffset
Description forthcoming.
cellFrameForTextContainer:
textContainer
proposedLineFragment:
lineFrag
glyphPosition:
position
characterIndex:
charIndex
The new way of placing the cell.
cellSize
The old way of placing the cell. The text system will never call these directly (TODO: make sure it doesn't), but other things might. The class implements the new method by calling these, so subclasses can easily change behavior by overriding these.
drawWithFrame:
cellFrame
inView:
controlView
Description forthcoming.
drawWithFrame:
cellFrame
inView:
controlView
characterIndex:
charIndex
Description forthcoming.
drawWithFrame:
cellFrame
inView:
controlView
characterIndex:
charIndex
layoutManager:
layoutManager
Description forthcoming.
highlight:
flag
withFrame:
cellFrame
inView:
controlView
Description forthcoming.
setAttachment:
anObject
Description forthcoming.
trackMouse:
theEvent
inRect:
cellFrame
ofView:
controlView
atCharacterIndex:
charIndex
untilMouseUp:
flag
Description forthcoming.
trackMouse:
theEvent
inRect:
cellFrame
ofView:
controlView
untilMouseUp:
flag
Description forthcoming.
wantsToTrackMouse
Description forthcoming.
wantsToTrackMouseForEvent:
theEvent
inRect:
cellFrame
ofView:
controlView
atCharacterIndex:
charIndex
Description forthcoming.