Previous | Index | Next |
Substring extraction methods
wordsOfString:
Useful if you have an NSString, so you don’t have to convert to a string first. Ignores localization, unlike localizedWordsOfString:.
+ (NSArray *)wordsOfString:(NSString *)aString
aString = Typically an NSString
An array of strings
Version 1.0.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set aString to "This is a string"
set theResult to current application's SMSForder's wordsOfString:aString
ASify from theResult
--> {"This", "is", "a", "string"}
theResult as list
--> {"This", "is", "a", "string"}