Up

# NSText

### Authors

Scott Christley (`scottc@net-community.com`)
Felipe A. Rodriguez (`far@ix.netcom.com`)
Daniel Bðhringer (`boehring@biomed.ruhr-uni-bochum.de`)
Fred Kiefer (`FredKiefer@gmx.de`)
Nicola Pero (`n.pero@mi.flashnet.it`)

> The RTFD text class

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

### Contents -

1. Software documentation for the NSText class
2. Software documentation for the NSObject(NSTextDelegate) informal protocol
3. Software documentation for the NSText(GNUstepExtensions) category

# Software documentation for the NSText class

## NSText : NSView

> Declared in:
>   AppKit/NSText.h

> Conforms to:
>   NSChangeSpelling
>   NSIgnoreMisspelledWords

Availability: OpenStep
Description forthcoming.
Method summary

- -textLength
- -RTFDFromRange:
- -RTFFromRange:
- -alignCenter:
- -alignLeft:
- -alignRight:
- -alignment
- -backgroundColor
- -changeFont:
- -changeSpelling:
- -checkSpelling:
- -copy:
- -copyFont:
- -copyRuler:
- -cut:
- -delegate
- -delete:
- -drawsBackground
- -font
- -ignoreSpelling:
- -importsGraphics
- -isEditable
- -isFieldEditor
- -isHorizontallyResizable
- -isRichText
- -isRulerVisible
- -isSelectable
- -isVerticallyResizable
- -maxSize
- -minSize
- -paste:
- -pasteFont:
- -pasteRuler:
- -readRTFDFromFile:
- -replaceCharactersInRange:withAttributedString:
- -replaceCharactersInRange:withRTF:
- -replaceCharactersInRange:withRTFD:
- -replaceCharactersInRange:withString:
- -replaceRange:withRTF:
- -replaceRange:withRTFD:
- -replaceRange:withString:
- -scrollRangeToVisible:
- -selectAll:
- -selectedRange
- -setAlignment:
- -setBackgroundColor:
- -setColor:ofRange:
- -setDelegate:
- -setDrawsBackground:
- -setEditable:
- -setFieldEditor:
- -setFont:
- -setFont:ofRange:
- -setFont:range:
- -setHorizontallyResizable:
- -setImportsGraphics:
- -setMaxSize:
- -setMinSize:
- -setRichText:
- -setSelectable:
- -setSelectedRange:
- -setString:
- -setText:
- -setText:range:
- -setTextColor:
- -setTextColor:range:
- -setUsesFontPanel:
- -setVerticallyResizable:
- -showGuessPanel:
- -sizeToFit
- -string
- -subscript:
- -superscript:
- -text
- -textColor
- -toggleRuler:
- -underline:
- -unscript:
- -usesFontPanel
- -writeRTFDToFile:atomically:

### RTFDFromRange:

- (NSData*) RTFDFromRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### RTFFromRange:

- (NSData*) RTFFromRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### alignCenter:

- (void) alignCenter: (id)sender;
Availability: OpenStep
Description forthcoming.

### alignLeft:

- (void) alignLeft: (id)sender;
Availability: OpenStep
Description forthcoming.

### alignRight:

- (void) alignRight: (id)sender;
Availability: OpenStep
Description forthcoming.

### alignment

- (NSTextAlignment) alignment;
Availability: OpenStep
Description forthcoming.

### backgroundColor

- (NSColor*) backgroundColor;
Availability: OpenStep
Description forthcoming.

### changeFont:

- (void) changeFont: (id)sender;
Availability: OpenStep
Description forthcoming.

### changeSpelling:

- (void) changeSpelling: (id)sender;
Availability: OpenStep
Description forthcoming.

### checkSpelling:

- (void) checkSpelling: (id)sender;
Availability: OpenStep
Description forthcoming.

### copy:

- (void) copy: (id)sender;
Availability: OpenStep
Description forthcoming.

### copyFont:

- (void) copyFont: (id)sender;
Availability: OpenStep
Description forthcoming.

### copyRuler:

- (void) copyRuler: (id)sender;
Availability: OpenStep
Description forthcoming.

### cut:

- (void) cut: (id)sender;
Availability: OpenStep
Description forthcoming.

### delegate

- (id) delegate;
Availability: OpenStep
Description forthcoming.

### delete:

- (void) delete: (id)sender;
Availability: OpenStep
Description forthcoming.

### drawsBackground

- (BOOL) drawsBackground;
Availability: OpenStep
Description forthcoming.

### font

- (NSFont*) font;
Availability: OpenStep
Description forthcoming.

### ignoreSpelling:

- (void) ignoreSpelling: (id)sender;
Availability: OpenStep
Description forthcoming.

### importsGraphics

- (BOOL) importsGraphics;
Availability: OpenStep
Description forthcoming.

### isEditable

- (BOOL) isEditable;
Availability: OpenStep
Description forthcoming.

### isFieldEditor

- (BOOL) isFieldEditor;
Availability: OpenStep
Description forthcoming.

### isHorizontallyResizable

- (BOOL) isHorizontallyResizable;
Availability: OpenStep
Description forthcoming.

### isRichText

- (BOOL) isRichText;
Availability: OpenStep
Description forthcoming.

### isRulerVisible

- (BOOL) isRulerVisible;
Availability: OpenStep
Description forthcoming.

### isSelectable

- (BOOL) isSelectable;
Availability: OpenStep
Description forthcoming.

### isVerticallyResizable

- (BOOL) isVerticallyResizable;
Availability: OpenStep
Description forthcoming.

### maxSize

- (NSSize) maxSize;
Availability: OpenStep
Description forthcoming.

### minSize

- (NSSize) minSize;
Availability: OpenStep
Description forthcoming.

### paste:

- (void) paste: (id)sender;
Availability: OpenStep
Description forthcoming.

### pasteFont:

- (void) pasteFont: (id)sender;
Availability: OpenStep
Description forthcoming.

### pasteRuler:

- (void) pasteRuler: (id)sender;
Availability: OpenStep
Description forthcoming.

### readRTFDFromFile:

- (BOOL) readRTFDFromFile: (NSString*)path;
Availability: OpenStep
Description forthcoming.

### replaceCharactersInRange: withAttributedString:

- (void) replaceCharactersInRange: (NSRange)aRange withAttributedString: (NSAttributedString*)attrString;
Availability: OpenStep
Description forthcoming.

### replaceCharactersInRange: withRTF:

- (void) replaceCharactersInRange: (NSRange)aRange withRTF: (NSData*)rtfData;
Availability: OpenStep
Description forthcoming.

### replaceCharactersInRange: withRTFD:

- (void) replaceCharactersInRange: (NSRange)aRange withRTFD: (NSData*)rtfdData;
Availability: OpenStep
Description forthcoming.

### replaceCharactersInRange: withString:

- (void) replaceCharactersInRange: (NSRange)aRange withString: (NSString*)aString;
Availability: OpenStep
Description forthcoming.

### replaceRange: withRTF:

- (void) replaceRange: (NSRange)aRange withRTF: (NSData*)rtfData;
Availability: OpenStep
Description forthcoming.

### replaceRange: withRTFD:

- (void) replaceRange: (NSRange)aRange withRTFD: (NSData*)rtfdData;
Availability: OpenStep
Description forthcoming.

### replaceRange: withString:

- (void) replaceRange: (NSRange)aRange withString: (NSString*)aString;
Availability: OpenStep
Description forthcoming.

### scrollRangeToVisible:

- (void) scrollRangeToVisible: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### selectAll:

- (void) selectAll: (id)sender;
Availability: OpenStep
Description forthcoming.

### selectedRange

- (NSRange) selectedRange;
Availability: OpenStep
Description forthcoming.

### setAlignment:

- (void) setAlignment: (NSTextAlignment)mode;
Availability: OpenStep
Description forthcoming.

### setBackgroundColor:

- (void) setBackgroundColor: (NSColor*)color;
Availability: OpenStep
Description forthcoming.

### setColor: ofRange:

- (void) setColor: (NSColor*)color ofRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### setDelegate:

- (void) setDelegate: (id)anObject;
Availability: OpenStep
Description forthcoming.

### setDrawsBackground:

- (void) setDrawsBackground: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setEditable:

- (void) setEditable: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setFieldEditor:

- (void) setFieldEditor: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setFont:

- (void) setFont: (NSFont*)font;
Availability: OpenStep
Description forthcoming.

### setFont: ofRange:

- (void) setFont: (NSFont*)font ofRange: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### setFont: range:

- (void) setFont: (NSFont*)font range: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### setHorizontallyResizable:

- (void) setHorizontallyResizable: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setImportsGraphics:

- (void) setImportsGraphics: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setMaxSize:

- (void) setMaxSize: (NSSize)newMaxSize;
Availability: OpenStep
Description forthcoming.

### setMinSize:

- (void) setMinSize: (NSSize)newMinSize;
Availability: OpenStep
Description forthcoming.

### setRichText:

- (void) setRichText: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setSelectable:

- (void) setSelectable: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setSelectedRange:

- (void) setSelectedRange: (NSRange)range;
Availability: OpenStep
Description forthcoming.

### setString:

- (void) setString: (NSString*)aString;
Availability: OpenStep
Description forthcoming.

### setText:

- (void) setText: (NSString*)aString;
Availability: OpenStep
Description forthcoming.

### setText: range:

- (void) setText: (NSString*)aString range: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### setTextColor:

- (void) setTextColor: (NSColor*)color;
Availability: OpenStep
Description forthcoming.

### setTextColor: range:

- (void) setTextColor: (NSColor*)color range: (NSRange)aRange;
Availability: OpenStep
Description forthcoming.

### setUsesFontPanel:

- (void) setUsesFontPanel: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### setVerticallyResizable:

- (void) setVerticallyResizable: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

### showGuessPanel:

- (void) showGuessPanel: (id)sender;
Availability: OpenStep
Description forthcoming.

### sizeToFit

- (void) sizeToFit;
Availability: OpenStep
Description forthcoming.

### string

- (NSString*) string;
Availability: OpenStep
Description forthcoming.

### subscript:

- (void) subscript: (id)sender;
Availability: OpenStep
Description forthcoming.

### superscript:

- (void) superscript: (id)sender;
Availability: OpenStep
Description forthcoming.

### text

- (NSString*) text;
Availability: OpenStep
Description forthcoming.

### textColor

- (NSColor*) textColor;
Availability: OpenStep
Description forthcoming.

### toggleRuler:

- (void) toggleRuler: (id)sender;
Availability: OpenStep
Description forthcoming.

### underline:

- (void) underline: (id)sender;
Availability: OpenStep
Description forthcoming.

### unscript:

- (void) unscript: (id)sender;
Availability: OpenStep
Description forthcoming.

### usesFontPanel

- (BOOL) usesFontPanel;
Availability: OpenStep
Description forthcoming.

### writeRTFDToFile: atomically:

- (BOOL) writeRTFDToFile: (NSString*)path atomically: (BOOL)flag;
Availability: OpenStep
Description forthcoming.

# Software documentation for the NSObject(NSTextDelegate) informal protocol

## NSObject(NSTextDelegate)

> Declared in:
>   AppKit/NSText.h

Availability: OpenStep
Description forthcoming.
Method summary

- -textDidBeginEditing:
- -textDidChange:
- -textDidEndEditing:
- -textShouldBeginEditing:
- -textShouldEndEditing:

### textDidBeginEditing:

- (void) textDidBeginEditing: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### textDidChange:

- (void) textDidChange: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### textDidEndEditing:

- (void) textDidEndEditing: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### textShouldBeginEditing:

- (BOOL) textShouldBeginEditing: (NSText*)textObject;
Availability: OpenStep
Description forthcoming.

### textShouldEndEditing:

- (BOOL) textShouldEndEditing: (NSText*)textObject;
Availability: OpenStep
Description forthcoming.

# Software documentation for the NSText(GNUstepExtensions) category

## NSText(GNUstepExtensions)

> Declared in:
>   AppKit/NSText.h

Availability: OpenStep
Description forthcoming.
Method summary

- -textLength

### textLength

- (unsigned) textLength;
Availability: OpenStep
Description forthcoming.

Up