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

NSTextStorageScripting — Mac OS X 10.0

Synopsis

This informal protocol declares methods for text storage classes to implement so that they may be scriptable. In the Application Kit, NSTextStorage implements all of the methods in this protocol as part of Cocoa’s built-in support for scripting.

@interface NSObject (NSTextStorageScripting)
                                  // Instance Methods
   - (NSArray *)attributeRuns;
   - (void)setAttributeRuns:(NSArray *)attributeRuns;
   - (NSArray *)paragraphs;
   - (void)setParagraphs:(NSArray *)paragraphs;
   - (NSArray *)words;
   - (void)setWords:(NSArray *)words;
   - (NSArray *)characters;
   - (void)setCharacters:(NSArray *)characters;
   - (NSFont *)font;
   - (void)setFont:(NSFont *)font;
   - (NSColor *)foregroundColor;
   - (void)setForegroundColor:(NSColor *)color;
@end

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