NSRangeSpecifier Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSScriptObjectSpecifiers.h |
Overview
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.
You don’t normally subclass NSRangeSpecifier.
Instance Methods
endSpecifier
Returns the object specifier representing the last object of the range.
Return Value
The object specifier representing the last object of the range.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hinitWithContainerClassDescription:containerSpecifier:key:startSpecifier:endSpecifier:
Returns a range specifier initialized with the given properties.
Parameters
- classDescription
The class description.
- container
The container.
- property
The property.
- startSpec
The object specifier representing the first object of the range.
- endSpec
The object specifier representing the last object of the range.
Return Value
A range specifier initialized with the given properties.
Discussion
Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and initializes the instance with the object specifiers representing the starting element, startSpec, and the ending element, endSpec, of a range of elements in the container.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hsetEndSpecifier:
Sets the object specifier representing the last object of the range to a given object.
Parameters
- endSpec
The object specifier representing the last object of the range.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hsetStartSpecifier:
Sets the object specifier representing the first object of the range to a given object.
Parameters
- startSpec
The object specifier representing the first object of the range.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hstartSpecifier
Returns the object specifier representing the first object of the range.
Return Value
The object specifier representing the first object of the range.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.h© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)