Class

NSRelativeSpecifier

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

Declaration

@interface NSRelativeSpecifier : NSScriptObjectSpecifier

Overview

You don’t normally subclass NSRelativeSpecifier.

Topics

Initializing a relative specifier

- initWithContainerClassDescription:containerSpecifier:key:relativePosition:baseSpecifier:

Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and initializes the relative position and base specifier to relPos and baseSpecifier.

Accessing a relative specifier

baseSpecifier

Sets the specifier for the base object.

relativePosition

Sets the relative position encapsulated by the receiver.

Constants

NSRelativePosition

These constants are used by relativePosition and relativePosition.

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.

NSRangeSpecifier

A specifier for a range of objects in a container.

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.