Class

NSRangeSpecifier

A specifier for a range of objects in a container.

Declaration

@interface NSRangeSpecifier : NSScriptObjectSpecifier

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.

Topics

Initializing a range specifier

- initWithContainerClassDescription:containerSpecifier:key:startSpecifier:endSpecifier:

Returns a range specifier initialized with the given properties.

Accessing a range specifier

endSpecifier

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

startSpecifier

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

Initializers

Relationships

See Also

Object Specifiers

NSScriptObjectSpecifier

An abstract class used to represent natural language expressions.

NSPropertySpecifier

A specifier for a simple attribute value, a one-to-one relationship, or all elements of a to-many relationship.

NSPositionalSpecifier

A specifier for an insertion point in a container relative to another object in the container.

NSRandomSpecifier

A specifier for an arbitrary object in a collection or, if not a one-to-many relationship, the sole object.

NSUniqueIDSpecifier

A specifier for an object in a collection (or container) by unique ID.

NSWhoseSpecifier

A specifier that indicates every object in a collection matching a condition.

NSNameSpecifier

A specifier for an object in a collection (or container) by name.

NSMiddleSpecifier

A specifier indicating the middle object in a collection or, if not a one-to-many relationship, the sole object.

NSIndexSpecifier

A specifier representing an object in a collection (or container) with an index number.

NSRelativeSpecifier

A specifier that indicates an object in a collection by its position relative to another object.