A specifier for an insertion point in a container relative to another object in the container.
NSPositionalSpecifier specify an insertion point in a container relative to another object in the container, for example,
before first word or
after paragraph 4. The container is specified by an instance of
NSPositionalSpecifier objects commonly encapsulate object specifiers used as arguments to the
move commands and indicate where the created or moved object is to be inserted relative to the object represented by an object specifier.
Invoking an accessor method to obtain information about an instance of
NSPositionalSpecifier causes the object to be evaluated if it hasn’t been already.
You don’t normally subclass
Initializing a positional specifier
Accessing information about a positional specifier
var insertionIndex: Int
Returns an insertion index that indicates where the new or copied object or objects should be placed.
var insertionKey: String?
Returns the key that identifies the relationship into which the new or copied object or objects should be inserted.
var insertionReplaces: Bool
Returns a Boolean value that indicates whether evaluation has been successful and the object to be inserted should actually replace the keyed, indexed object in the insertion container.
Evaluating a positional specifier
A specifier for a simple attribute value, a one-to-one relationship, or all elements of a to-many relationship.
A specifier for an arbitrary object in a collection or, if not a one-to-many relationship, the sole object.
A specifier indicating the middle object in a collection or, if not a one-to-many relationship, the sole object.