An abstract class that provides the basis for testing specifiers one at a time or in groups.
- macOS 10.0+
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 (
NOT). These classes are, respectively,
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.