Next Page > Hide TOC

NSScriptWhoseTest Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/Foundation.framework
Availability
Available in Mac OS X v10.0 and later.
Companion guide
Declared in
NSScriptWhoseTests.h

Overview

NSScriptWhoseTest is an abstract class whose sole method is isTrue. Two concrete subclasses of NSScriptWhoseTest generate objects representing Boolean expressions comparing one object with another and objects representing multiple Boolean expressions connected by logical operators (OR, AND, NOT). These classes are, respectively, NSSpecifierTest and NSLogicalTest. In evaluating itself, an NSWhoseSpecifier invokes the isTrue method of its “test” object.

You shouldn’t need to subclass NSScriptWhoseTest, and you should rarely need to subclass one of its subclasses.

Adopted Protocols

NSCoding

Tasks

Evaluating a Test

Instance Methods

isTrue

Returns a Boolean value that indicates whether the test represented by the receiver evaluates to YES.

- (BOOL)isTrue

Return Value

YES if the test represented by the receiver evaluates to YES, otherwise NO.

Availability
Declared In
NSScriptWhoseTests.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.