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;

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.