DekGenius.com
[ Team LiB ] Previous Section Next Section

NSInvocation Mac OS X 10.0

This class encapsulates information about an Objective-C message such as the selector and the target of the message. NSInvocations are useful for statically storing a message and are often used with timers, and for message forwarding.

figs/cocn_1345.gif

@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;

    [ Team LiB ] Previous Section Next Section