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

NSWhoseSpecifier — Mac OS X 10.0

Synopsis

This class represents the scripting language reference form used to specify a selection of objects within a collection that matches some provided boolean condition. NSWhoseSpecifier works in conjunction with a test object that represents the matching condition. This test object is an instance of a subclass of NSScriptWhoseTest.

image with no caption

@interface NSWhoseSpecifier : NSScriptObjectSpecifier
                                  // Initializers
   - (id)initWithContainerClassDescription:(NSScriptClassDescription *)classDesc        
                                 containerSpecifier:(NSScriptObjectSpecifier *)container 
                                 key:(NSString *)property 
                                 test:(NSScriptWhoseTest *)test;
                                  // Accessor Methods
   - (void)setStartSubelementIndex:(int)index;
   - (int)startSubelementIndex;
   - (void)setEndSubelementIndex:(int)index;
   - (int)endSubelementIndex;
   - (void)setEndSubelementIdentifier:(NSWhoseSubelementIdentifier)subelement;
   - (NSWhoseSubelementIdentifier)endSubelementIdentifier;
   - (void)setStartSubelementIdentifier:(NSWhoseSubelementIdentifier)subelement;
   - (NSWhoseSubelementIdentifier)startSubelementIdentifier;
   - (void)setTest:(NSScriptWhoseTest *)test;
   - (NSScglobal variables;iptWhoseTest *)test;

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