May 2003
Intermediate to advanced
566 pages
27h 29m
English
NSTextAttachmentCell — Mac OS X 10.0
This protocol declares an interface for classes that draw
text
attachments and handle mouse events within a text attachment.
NSCell implements all of the methods of this
protocol, less three: cellBaselineOffset,
setAttachment:, and attachment.
NSTextAttachmentCell extends
NSCell’s interface by
implementing these three methods.
@protocol NSTextAttachmentCell
|
// Instance Methods
|
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; |
- (BOOL)wantsToTrackMouse;
|
- (void)highlight:(BOOL)flag withFrame:(NSRect)cellFrame inView:(NSView *)controlView; |
- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView untilMouseUp:(BOOL)flag; |
- (NSSize)cellSize;
|
- (NSPoint)cellBaselineOffset;
|
- (void)setAttachment:(NSTextAttachment *)anObject; |
- (NSTextAttachment *)attachment;
|
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView characterIndex:(unsigned)charIndex; |
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView characterIndex:(unsigned)charIndex layoutManager:(NSLayoutManager *)layoutManager; |
- (BOOL)wantsToTrackMouseForEvent:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView atCharacterIndex:(unsigned)charIndex; |
- (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame ofView:(NSView *)controlView atCharacterIndex:(unsigned)charIndex untilMouseUp:(BOOL)flag; |
- (NSRect)cellFrameForTextContainer:(NSTextContainer ... |
Read now
Unlock full access