Mac Developer Library

Developer

Foundation Framework Reference NSScriptingComparisonMethods Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSScriptingComparisonMethods

This informal protocol defines a set of methods useful for comparing script objects. More...

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


import Foundation @import Foundation;

Availability


Available in OS X v10.0 and later.
  • Returns YEStrue if, in a scripting comparison, the compared object matches the beginning of object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingBeginsWith(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingBeginsWith:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object contains object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingContains(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingContains:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object matches the end of object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingEndsWith(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingEndsWith:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object is equal to object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingIsEqualTo(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingIsEqualTo:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object is greater than object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingIsGreaterThan(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingIsGreaterThan:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object is greater than or equal to object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingIsGreaterThanOrEqualTo(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingIsGreaterThanOrEqualTo:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object is less than object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingIsLessThan(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingIsLessThan:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns YEStrue if, in a scripting comparison, the compared object is less than or equal to object. A default implementation is provided for NSString and NSAttributedString.

    Declaration

    Swift

    func scriptingIsLessThanOrEqualTo(_ object: AnyObject!) -> Bool

    Objective-C

    - (BOOL)scriptingIsLessThanOrEqualTo:(id)object

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.