Mac Developer Library

Developer

Foundation Framework Reference NSRangeSpecifier Class Reference

Options
Deployment Target:

On This Page
Language:

NSRangeSpecifier

An NSRangeSpecifier object specifies a range (that is, an uninterrupted series) of objects in a container through two delimiting objects. The range is represented by two object specifiers, a start specifier and an end specifier, which can be of any specifier type (such as NSIndexSpecifier or NSWhoseSpecifier object). These specifiers are evaluated in the context of the same container object as the range specifier itself. More...

Inheritance


Conforms To


Import Statement


import Foundation @import Foundation;

Availability


Available in OS X v10.0 and later.
  • Returns the object specifier representing the last object of the range.

    Declaration

    Swift

    var endSpecifier: NSScriptObjectSpecifier?

    Objective-C

    @property(retain) NSScriptObjectSpecifier *endSpecifier

    Return Value

    The object specifier representing the last object of the range.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Sets the object specifier representing the last object of the range to a given object.

    Declaration

    Swift

    var endSpecifier: NSScriptObjectSpecifier?

    Objective-C

    @property(retain) NSScriptObjectSpecifier *endSpecifier

    Parameters

    endSpec

    The object specifier representing the last object of the range.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Sets the object specifier representing the first object of the range to a given object.

    Declaration

    Swift

    var startSpecifier: NSScriptObjectSpecifier?

    Objective-C

    @property(retain) NSScriptObjectSpecifier *startSpecifier

    Parameters

    startSpec

    The object specifier representing the first object of the range.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns the object specifier representing the first object of the range.

    Declaration

    Swift

    var startSpecifier: NSScriptObjectSpecifier?

    Objective-C

    @property(retain) NSScriptObjectSpecifier *startSpecifier

    Return Value

    The object specifier representing the first object of the range.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.