(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSInvocation 

Inherits From:	NSObject 

Conforms To:	NSCoding
NSObject

Declared In:	foundation/NSInvocation.h 

Creating Invocations 

+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)aSignature
	Returns an invocation object able to construct calls to objects using method selectors with type signatures described by aSignature.

Managing Invocation Arguments

- (void)getArgument:(void *)argumentLocation	Copies the argument stored at index into the storage
atIndex:(int)index		pointed to by argumentLocation where 2 is the index of the first argument, 3 is the index of the second, and so on.
	
- (void)getReturnValue:(void *)returnLocation	Copies the invocation's return value into the storage pointed to by returnLocation.
- (NSMethodSignature *)methodSignature	Returns the invocation's method signature object.
- (SEL)selector	Returns the invocation's selector.
- (void)setArgument:(void *)argumentLocation	Sets the argument stored at index to the storage pointed to
atIndex:(int)index		by argumentLocation where 2 is the index of the first argument, 3 is the index of the second, and so on..
- (void)setReturnValue:(void *)returnLocation	Sets the invocation's return value to that indicated by returnLocation. 
- (void)setSelector:(SEL)aSelector	Sets the invocation's selector to aSelector. 
- (void)setTarget:(id)target	Sets the invocation's target to target. 
- (id)target	Returns the invocation's target; returns nil if there is no target.

Dispatching an Invocation

- (void)invoke	Causes the message encoded in the invocation to be dispatched to its target.
- (void)invokeWithTarget:(id)target	Causes the message encoded in the invocation to be dispatched to target.