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