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

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

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