NSText | Mac OS X 10.0 |
NSText inherits from NSView and is the parent class of NSTextView. It declares the most general interface for objects that manage and display text; however, clients generally interact with NSTextView objects rather than instances of NSText itself.
@interface NSText : NSView <NSChangeSpelling, NSIgnoreMisspelledWords>
|
// Accessor Methods |
- (void)setHorizontallyResizable:(BOOL)flag; |
- (void)setString:(NSString *)string; |
- (NSString *)string;
|
- (void)setDelegate:(id)anObject; |
- (id)delegate;
|
- (void)setSelectedRange:(NSRange)range; |
- (NSRange)selectedRange;
|
- (void)setSelectable:(BOOL)flag; |
- (void)setMinSize:(NSSize)newMinSize; |
- (NSSize)minSize;
|
- (void)setRichText:(BOOL)flag; |
- (void)setImportsGraphics:(BOOL)flag; |
- (BOOL)importsGraphics;
|
- (void)setBackgroundColor:(NSColor *)color; |
- (NSColor *)backgroundColor;
|
- (void)setMaxSize:(NSSize)newMaxSize; |
- (NSSize)maxSize;
|
- (void)setUsesFontPanel:(BOOL)flag; |
- (BOOL)usesFontPanel;
|
- (void)setFieldEditor:(BOOL)flag; |
- (void)setAlignment:(NSTextAlignment)mode; |
- (NSTextAlignment)alignment;
|
- (void)setVerticallyResizable:(BOOL)flag; |
- (void)setFont:(NSFont *)obj; |
- (NSFont *)font;
|
- (void)setTextColor:(NSColor *)color; |
- (NSColor *)textColor;
|
- (void)setDrawsBackground:(BOOL)flag; |
- (BOOL)drawsBackground;
|
- (void)setTextColor:(NSColor *)color range:(NSRange)range; |
- (void)setEditable:(BOOL)flag; |
- (void)setFont:(NSFont *)font range:(NSRange)range; |
// Instance Methods |
- (NSData *)RTFDFromRange:(NSRange)range; |
- (NSData *)RTFFromRange:(NSRange)range; |
- (void)alignLeft:(id)sender; |
- (void)alignRight:(id)sender; |
- (void)changeFont:(id)sender; |
- (void)cut:(id)sender; |
- (void)delete:(id)sender; |
- (BOOL)isEditable;
|
- (void)alignCenter:(id)sender; |
- (void)checkSpelling:(id)sender; |
- (BOOL)isFieldEditor;
|
- (BOOL)isHorizontallyResizable;
|
- (BOOL)isRichText;
|
- (BOOL)isSelectable;
|
- (BOOL)isVerticallyResizable;
|
- (BOOL)readRTFDFromFile:(NSString *)path; |
- (void)replaceCharactersInRange:(NSRange)range withRTF:(NSData *)rtfData; |
- (void)replaceCharactersInRange:(NSRange)range withRTFD:(NSData *)rtfdData; |
- (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)aString; |
- (void)scrollRangeToVisible:(NSRange)range; |
- (void)selectAll:(id)sender; |
- (void)sizeToFit;
|
- (void)subscript:(id)sender; |
- (void)superscript:(id)sender; |
- (void)toggleRuler:(id)sender; |
- (void)underline:(id)sender; |
- (void)unscript:(id)sender; |
- (void)copy:(id)sender; |
- (void)copyFont:(id)sender; |
- (void)copyRuler:(id)sender; |
- (BOOL)isRulerVisible;
|
- (void)paste:(id)sender; |
- (void)pasteFont:(id)sender; |
- (void)pasteRuler:(id)sender; |
- (void)showGuessPanel:(id)sender; |
- (BOOL)writeRTFDToFile:(NSString *)path atomically:(BOOL)flag; |
// Methods Implementing NSChangeSpelling |
- (void)changeSpelling:(id)sender; |
// Methods Implementing NSIgnoreMisspelledWords |
- (void)ignoreSpelling:(id)sender; |
// Methods Implemented by the Delegate |
- (void)textDidBeginEditing:(NSNotification *)notification; |
- (void)textDidChange:(NSNotification *)notification; |
- (void)textDidEndEditing:(NSNotification *)notification; |
- (BOOL)textShouldBeginEditing:(NSText *)textObject; |
- (BOOL)textShouldEndEditing:(NSText *)textObject; |
// Notifications |
NSTextDidBeginEditingNotification;
|
NSTextDidChangeNotification;
|
NSTextView