Mac Developer Library

Developer

Foundation Framework Reference NSScriptWhoseTest Class Reference

Options
Deployment Target:

On This Page
Language:

NSScriptWhoseTest

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. More...

Inheritance


Conforms To


Import Statement


import Foundation @import Foundation;

Availability


Available in OS X v10.0 and later.
  • Returns a Boolean value that indicates whether the test represented by the receiver evaluates to YEStrue.

    Declaration

    Swift

    func isTrue() -> Bool

    Objective-C

    - (BOOL)isTrue

    Return Value

    YEStrue if the test represented by the receiver evaluates to YEStrue, otherwise NOfalse.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.