Add methods for scriptability for completeness

This commit is contained in:
Gregory John Casamento 2019-04-20 06:37:08 -04:00
parent 0255a191e9
commit 20650d869c
2 changed files with 66 additions and 0 deletions

View file

@ -188,6 +188,31 @@ enum
*/
- (NSFont*) font;
- (void) setFont: (NSFont*)font;
/*
* The text storage contents as an array of attribute runs.
*/
- (NSArray *)attributeRuns;
/*
* The text storage contents as an array of paragraphs.
*/
- (NSArray *)paragraphs;
/*
* The text storage contents as an array of words.
*/
- (NSArray *)words;
/*
* The text storage contents as an array of characters.
*/
- (NSArray *)characters;
/*
* The font color used when drawing text.
*/
- (NSColor *)foregroundColor;
@end
/**** Notifications ****/

View file

@ -398,4 +398,45 @@ static NSNotificationCenter *nc = nil;
}
}
/*
* The text storage contents as an array of attribute runs.
*/
- (NSArray *)attributeRuns
{
return nil;
}
/*
* The text storage contents as an array of paragraphs.
*/
- (NSArray *)paragraphs
{
return nil;
}
/*
* The text storage contents as an array of words.
*/
- (NSArray *)words
{
return nil;
}
/*
* The text storage contents as an array of characters.
*/
- (NSArray *)characters
{
return nil;
}
/*
* The font color used when drawing text.
*/
- (NSColor *)foregroundColor
{
return nil;
}
@end