Up

NSTextAttachment

Authors

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

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


Contents -

  1. Software documentation for the NSTextAttachment class
  2. Software documentation for the NSTextAttachmentCell class
  3. Software documentation for the NSAttributedString(NSTextAttachment) category
  4. Software documentation for the NSMutableAttributedString(NSTextAttachment) category
  5. Software documentation for the NSTextAttachmentCell protocol

Software documentation for the NSTextAttachment class

NSTextAttachment : NSObject

Declared in:
AppKit/NSTextAttachment.h
Conforms to:
NSCoding
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Instance Variables

Method summary

attachmentCell 

- (id<NSTextAttachmentCell>) attachmentCell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


fileWrapper 

- (NSFileWrapper*) fileWrapper;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


initWithFileWrapper: 

- (id) initWithFileWrapper: (NSFileWrapper*)fileWrapper;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setAttachmentCell: 

- (void) setAttachmentCell: (id<NSTextAttachmentCell>)cell;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setFileWrapper: 

- (void) setFileWrapper: (NSFileWrapper*)fileWrapper;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.




Instance Variables for NSTextAttachment Class

_cell

@protected id _cell;

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.


_fileWrapper

@protected NSFileWrapper* _fileWrapper;

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 NSTextAttachmentCell class

NSTextAttachmentCell : NSCell

Declared in:
AppKit/NSTextAttachment.h
Conforms to:
NSTextAttachmentCell
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Instance Variables



Instance Variables for NSTextAttachmentCell Class

_attachment

@protected NSTextAttachment* _attachment;

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

NSAttributedString(NSTextAttachment)

Declared in:
AppKit/NSTextAttachment.h
Availability: Not in OpenStep/MacOS-X

Description forthcoming.

Method summary

attributedStringWithAttachment: 

+ (NSAttributedString*) attributedStringWithAttachment: (NSTextAttachment*)attachment;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


containsAttachments 

- (BOOL) containsAttachments;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Software documentation for the NSMutableAttributedString(NSTextAttachment) category

NSMutableAttributedString(NSTextAttachment)

Declared in:
AppKit/NSTextAttachment.h
Availability: Not in OpenStep/MacOS-X

Description forthcoming.

Method summary

updateAttachmentsFromPath: 

- (void) updateAttachmentsFromPath: (NSString*)path;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Software documentation for the NSTextAttachmentCell protocol

NSTextAttachmentCell

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

Description forthcoming.

Method summary

attachment 

- (NSTextAttachment*) attachment;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellBaselineOffset 

- (NSPoint) cellBaselineOffset;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


cellFrameForTextContainer: proposedLineFragment: glyphPosition: characterIndex: 

- (NSRect) cellFrameForTextContainer: (NSTextContainer*)textContainer proposedLineFragment: (NSRect)lineFrag glyphPosition: (NSPoint)position characterIndex: (unsigned int)charIndex;
Availability: Not in OpenStep/MacOS-X

The new way of placing the cell.


cellSize 

- (NSSize) cellSize;
Availability: Not in OpenStep/MacOS-X

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: Not in OpenStep/MacOS-X

Description forthcoming.


drawWithFrame: inView: characterIndex: 

- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView characterIndex: (unsigned)charIndex;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


drawWithFrame: inView: characterIndex: layoutManager: 

- (void) drawWithFrame: (NSRect)cellFrame inView: (NSView*)controlView characterIndex: (unsigned)charIndex layoutManager: (NSLayoutManager*)layoutManager;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


highlight: withFrame: inView: 

- (void) highlight: (BOOL)flag withFrame: (NSRect)cellFrame inView: (NSView*)controlView;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setAttachment: 

- (void) setAttachment: (NSTextAttachment*)anObject;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


trackMouse: inRect: ofView: atCharacterIndex: untilMouseUp: 

- (BOOL) trackMouse: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView atCharacterIndex: (unsigned)charIndex untilMouseUp: (BOOL)flag;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


trackMouse: inRect: ofView: untilMouseUp: 

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

Description forthcoming.


wantsToTrackMouse 

- (BOOL) wantsToTrackMouse;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


wantsToTrackMouseForEvent: inRect: ofView: atCharacterIndex: 

- (BOOL) wantsToTrackMouseForEvent: (NSEvent*)theEvent inRect: (NSRect)cellFrame ofView: (NSView*)controlView atCharacterIndex: (unsigned)charIndex;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.



Up