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.
- macOS 10.0+
You shouldn’t need to subclass
NSScript, and you should rarely need to subclass one of its subclasses.