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

NSTextAttachmentCell — Mac OS X 10.0

Synopsis

This class implements the interface defined by the NSTextAttachmentCell protocol.

image with no caption

@interface NSTextAttachmentCell : NSCell <NSTextAttachmentCell>
                                  // Methods Implementing NSTextAttachmentCell
   - (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 *)textContainer 
                                 proposedLineFragment:(NSRect)lineFrag
                                 glyphPosition:(NSPoint)position ...

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