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

NSScriptWhoseTest — Mac OS X 10.0

Synopsis

This class is used in Cocoa’s scripting system to represent the Boolean expression of an NSScriptWhoseSpecifier. NSScriptWhoseTest is an abstract class that defines only the single method isTrue. This method is invoked to evaluate the expression represented by the NSScriptWhoseTest object, and returns a BOOL. Foundation implements two concrete subclasses of this class: NSLogicalTest and NSSpecifierTest.

image with no caption

@interface NSScriptWhoseTest : NSObject <NSCoding>
                                  // Instance Methods
   - (BOOL)isTrue;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

Subclasses

NSLogicalTest, NSSpecifierTest

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