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

NSMethodSignature 

Inherits From:	NSObject 

Conforms To:	NSCoding
NSObject  

Declared In:	foundation/NSMethodSignature.h 

Creating a Method Signature

+ (NSMethodSignature *)signatureWithObjCTypes:(const char *)types
	Creates a method signature object given types, a string encoding the method return and argument types.  The characters of the encoding are accessible through the root class's descriptionForInstanceMethod: or similar methods. 

Querying a Method Signature

- (NSArgumentInfo)argumentInfoAtIndex:(unsigned)index
	Returns information about the argument at index.  Indices begin with 0.  The ªhiddenº arguments self and _cmd are indexed at 0 and 1; method-specific arguments begin at index 2.  If index is too large for the actual number of arguments, a NSInvalidArgumentException exception is raised.
- (unsigned)frameLength	Returns the number of bytes that the arguments, taken together, would occupy on the stack. 
- (BOOL)isOneway	Returns YES if the method is asynchronous (that is, it returns without waiting for the receiver to finish processing it), and NO otherwise.
- (unsigned)methodReturnLength	Returns the number of bytes required by the return value.
- (char *)methodReturnType	Returns a string encoding the return type of the method.   (What the characters in the string represent is usually defined by some implementation-dependent runtime types.)
- (unsigned)numberOfArguments	Returns the number of arguments recorded  in the receiver.  This will be at least two, since it includes the ªhiddenº arguments, self and _cmd, which are the first two arguments passed to every method implementation.