An abstract class that provides the basis for testing specifiers one at a time or in groups.
SDK
- macOS 10.0+
Framework
- Foundation
Declaration
class NSScriptWhoseTest : NSObject
Overview
NSScript
is an abstract class whose sole method is is
. Two concrete subclasses of NSScript
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, NSSpecifier
and NSLogical
. In evaluating itself, an NSWhose
invokes the is
method of its “test” object.
You shouldn’t need to subclass NSScript
, and you should rarely need to subclass one of its subclasses.