Name
NSScriptObjectSpecifiers — Mac OS X 10.0
Synopsis
This informal protocol declares
two methods that
classes implement to support scriptability. The two methods are
objectSpecifier
and
indicesOfObjectsBy-EvaluatingObjectSpecifier
:. The
objectSpecifier
method, when implemented, should
return an instance of NSObjectSpecifier
, while the
second method listed below is implemented by container objects to
return an NSArray
of NSNumbers
indicating the indices of objects within the container that match the
specifier indicated in the argument. See the class description of
NSScriptObjectSpecifier in Chapter 13 for more
information.
@interface NSObject (NSScriptObjectSpecifiers)
|
// Instance Methods
|
- (NSScriptObjectSpecifier *)objectSpecifier;
|
- (NSArray *)indicesOfObjectsByEvaluatingObjectSpecifier:(NSScriptObjectSpecifier *)specifier; |
@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.