Name
NSInvocation — Mac OS X 10.0
Synopsis
This class encapsulates information about an Objective-C message such
as the selector and the target of the message.
NSInvocation
s are useful for statically storing a
message and are often used with timers, and for message forwarding.
|
@interface NSInvocation : NSObject <NSCoding>
|
// Convenience Constructors
|
+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)sig; |
// Accessor Methods
|
- (void)setSelector:(SEL)selector; |
- (SEL)selector;
|
- (void)setTarget:(id)target; |
- (id)target;
|
- (void)setReturnValue:(void *)retLoc; |
- (void)setArgument:(void *)argumentLocation atIndex:(int)index; |
// Instance Methods
|
- (void)getReturnValue:(void *)retLoc; |
- (void)invoke;
|
- (void)getArgument:(void *)argumentLocation atIndex:(int)index; |
- (BOOL)argumentsRetained;
|
- (void)invokeWithTarget:(id)target; |
- (NSMethodSignature *)methodSignature;
|
- (void)retainArguments;
|
// Methods Implementing NSCoding
|
- (void)encodeWithCoder:(NSCoder *)aCoder; |
- (id)initWithCoder:(NSCoder *)aDecoder; |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.