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

NSText — Mac OS X 10.0

Synopsis

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.

image with no caption

@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 ...

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