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 |
Specifies an object in a collection by its position relative to another object. You don’t normally subclass NSRelativeSpecifier
.
Returns a specifier for the base object.
- (NSScriptObjectSpecifier *)baseSpecifier
A specifier for the base object—the object to which the relative specifier is related.
NSScriptObjectSpecifiers.h
Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key:
method and initializes the relative position and base specifier to relPos and baseSpecifier.
- (id)initWithContainerClassDescription:(NSScriptClassDescription *)classDescription containerSpecifier:(NSScriptObjectSpecifier *)specifier key:(NSString *)property relativePosition:(NSRelativePosition)relPos baseSpecifier:(NSScriptObjectSpecifier *)baseSpecifier
NSScriptObjectSpecifiers.h
Returns the relative position encapsulated by the receiver.
- (NSRelativePosition)relativePosition
The relative position encapsulated by the receiver.
NSScriptObjectSpecifiers.h
Sets the specifier for the base object.
- (void)setBaseSpecifier:(NSScriptObjectSpecifier *)baseSpecifier
The specifier for the base object—the object to which the relative specifier is related.
NSScriptObjectSpecifiers.h
Sets the relative position encapsulated by the receiver.
- (void)setRelativePosition:(NSRelativePosition)relPos
The relative position encapsulated by the receiver.
NSScriptObjectSpecifiers.h
These constants are used by relativePosition
and setRelativePosition:
.
typedef enum { NSRelativeAfter = 0, NSRelativeBefore } NSRelativePosition;
NSRelativeAfter
Specifies a position after another object.
Available in Mac OS X v10.0 and later.
Declared in NSScriptObjectSpecifiers.h
.
NSRelativeBefore
Specifies a position before another object.
Available in Mac OS X v10.0 and later.
Declared in NSScriptObjectSpecifiers.h
.
NSScriptObjectSpecifiers.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-06-28)