Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/Foundation.framework |
Availability | Available in Mac OS X v10.0 and later. |
Companion guide | |
Declared in | NSScriptObjectSpecifiers.h |
Related sample code |
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
.
Returns the object specifier representing the last object of the range.
- (NSScriptObjectSpecifier *)endSpecifier
The object specifier representing the last object of the range.
NSScriptObjectSpecifiers.h
Returns a range specifier initialized with the given properties.
- (id)initWithContainerClassDescription:(NSScriptClassDescription *)classDescription containerSpecifier:(NSScriptObjectSpecifier *)container key:(NSString *)property startSpecifier:(NSScriptObjectSpecifier *)startSpec endSpecifier:(NSScriptObjectSpecifier *)endSpec
The class description.
The container.
The property.
The object specifier representing the first object of the range.
The object specifier representing the last object of the range.
A range specifier initialized with the given properties.
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.
NSScriptObjectSpecifiers.h
Sets the object specifier representing the last object of the range to a given object.
- (void)setEndSpecifier:(NSScriptObjectSpecifier *)endSpec
The object specifier representing the last object of the range.
NSScriptObjectSpecifiers.h
Sets the object specifier representing the first object of the range to a given object.
- (void)setStartSpecifier:(NSScriptObjectSpecifier *)startSpec
The object specifier representing the first object of the range.
NSScriptObjectSpecifiers.h
Returns the object specifier representing the first object of the range.
- (NSScriptObjectSpecifier *)startSpecifier
The object specifier representing the first object of the range.
NSScriptObjectSpecifiers.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)