NSRelativeSpecifier 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
Specifies an object in a collection by its position relative to another object. You don’t normally subclass NSRelativeSpecifier.
Instance Methods
baseSpecifier
Returns a specifier for the base object.
Return Value
A specifier for the base object—the object to which the relative specifier is related.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hinitWithContainerClassDescription: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.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hrelativePosition
Returns the relative position encapsulated by the receiver.
Return Value
The relative position encapsulated by the receiver.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hsetBaseSpecifier:
Sets the specifier for the base object.
Parameters
- baseSpecifier
The specifier for the base object—the object to which the relative specifier is related.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hsetRelativePosition:
Sets the relative position encapsulated by the receiver.
Parameters
- relPos
The relative position encapsulated by the receiver.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.hConstants
NSRelativePosition
These constants are used by relativePosition and setRelativePosition:.
typedef enum {
NSRelativeAfter = 0,
NSRelativeBefore
} NSRelativePosition;
Constants
NSRelativeAfterSpecifies a position after another object.
Available in OS X v10.0 and later.
Declared in
NSScriptObjectSpecifiers.h.NSRelativeBeforeSpecifies a position before another object.
Available in OS X v10.0 and later.
Declared in
NSScriptObjectSpecifiers.h.
Availability
- Available in OS X v10.0 and later.
Declared In
NSScriptObjectSpecifiers.h© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-06-28)