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

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.