Up

NSTextAttachment

Authors

Fred Kiefer (FredKiefer@gmx.de)
Classes to represent text attachments.

Copyright: (C) 2000 Free Software Foundation, Inc.

Software documentation for the NSTextAttachmentCell protocol

NSTextAttachmentCell

Declared in:
AppKit/NSTextAttachment.h
Conforms to:
NSObject
Availability: MacOS-X 10.0.0

Description forthcoming.
Method summary

attachment 

- (NSTextAttachment*) attachment;
Availability: MacOS-X 10.0.0

Description forthcoming.

cellBaselineOffset 

- (NSPoint) cellBaselineOffset;
Availability: MacOS-X 10.0.0

Description forthcoming.

cellFrameForTextContainer: proposedLineFragment: glyphPosition: characterIndex: 

- (NSRect) cellFrameForTextContainer: (NSTextContainer*)textContainer proposedLineFragment: (NSRect)lineFrag glyphPosition: (NSPoint)position characterIndex: (NSUInteger)charIndex;
Availability: MacOS-X 10.0.0

The new way of placing the cell.

cellSize 

- (NSSize) cellSize;
Availability: MacOS-X 10.0.0

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: inView: 

- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: MacOS-X 10.0.0

Description forthcoming.

drawWithFrame: inView: characterIndex: 

- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView characterIndex: (NSUInteger)charIndex;
Availability: MacOS-X 10.0.0

Description forthcoming.

drawWithFrame: inView: characterIndex: layoutManager: 

- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView characterIndex: (NSUInteger)charIndex layoutManager: (NSLayoutManager*)layoutManager;
Availability: MacOS-X 10.0.0

Description forthcoming.

highlight: withFrame: inView: 

- (void) highlight: (BOOL)flag withFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: MacOS-X 10.0.0

Description forthcoming.

setAttachment: 

- (void) setAttachment: (NSTextAttachment*)anObject;
Availability: MacOS-X 10.0.0

Description forthcoming.

trackMouse: inRect: ofView: atCharacterIndex: untilMouseUp: 

- (BOOL) trackMouse: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView atCharacterIndex: (NSUInteger)charIndex untilMouseUp: (BOOL)flag;
Availability: MacOS-X 10.0.0

Description forthcoming.

trackMouse: inRect: ofView: untilMouseUp: 

- (BOOL) trackMouse: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView untilMouseUp: (BOOL)flag;
Availability: MacOS-X 10.0.0

Description forthcoming.

wantsToTrackMouse 

- (BOOL) wantsToTrackMouse;
Availability: MacOS-X 10.0.0

Description forthcoming.

wantsToTrackMouseForEvent: inRect: ofView: atCharacterIndex: 

- (BOOL) wantsToTrackMouseForEvent: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView atCharacterIndex: (NSUInteger)charIndex;
Availability: MacOS-X 10.0.0

Description forthcoming.


Up