Up
Authors
- Andrew Kachites McCallum (
mccallum@gnu.ai.mit.edu
)
-
Version: 1.38
Date: 2005/07/08 11:48:34
Copyright: (C) 1994, 1995, 1996, 1998 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSMethodSignature.h
Availability: OpenStep
Class encapsulating type information for method arguments and return value. It is used as a component of NSInvocation
to implement message forwarding, such as within the distributed objects framework. Instances can be obtained from the NSObject
method [NSObject -methodSignatureForSelector:]
.
Basically, types are represented as Objective-C @encode(...)
compatible strings, together with size information. The arguments are numbered starting from 0, including the implicit arguments self
(type id
, at position 0) and _cmd
(type SEL
, at position 1).
Instance Variables
Method summary
+ (
NSMethodSignature*)
signatureWithObjCTypes: (const char*)t;
Availability: OpenStep
Build a method signature directly from string description of return type and argument types, using the Objective-C @encode(...)
type codes.
- (
NSArgumentInfo)
argumentInfoAtIndex: (unsigned)index;
Availability: OpenStep removed at OPENSTEP 4.0.0
Returns full information on given argument. Indices start at 0. Provide -1 to get info on return value.
- (unsigned)
frameLength;
Availability: OpenStep
Number of bytes that the full set of arguments occupies on the stack, which is platform(hardware)-dependent.
- (const char*)
getArgumentTypeAtIndex: (unsigned)index;
Availability: OpenStep
Returns Objective-C @encode(...)
compatible string. Arguments are numbered starting from 0, including the implicit arguments self
(type id
, at position 0) and _cmd
(type SEL
, at position 1).
- (BOOL)
isOneway;
Availability: OpenStep
Pertains to distributed objects; method is asynchronous when invoked and return should not be waited for.
- (unsigned)
methodReturnLength;
Availability: OpenStep
Number of bytes that the return value occupies on the stack, which is platform(hardware)-dependent.
- (const char*)
methodReturnType;
Availability: OpenStep
Returns Objective-C @encode(...)
compatible string. Arguments are numbered starting from 0, including the implicit arguments self
(type id
, at position 0) and _cmd
(type SEL
, at position 1).
- (unsigned)
numberOfArguments;
Availability: OpenStep
Returns number of arguments to method, including the implicit self
and _cmd
.
Instance Variables for NSMethodSignature Class
@protected unsigned int _argFrameLength;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected NSArgumentInfo* _info;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected const char* _methodTypes;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
@protected unsigned int _numArgs;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
- Declared in:
- Foundation/NSMethodSignature.h
Availability: Base 0.0.0
Declares a convenience method for getting the entire array of raw type and size information.
Method summary
- (
NSArgumentInfo*)
methodInfo;
Availability: Base 0.0.0
Convenience method for getting the entire array of raw type and size information.
- (const char*)
methodType;
Availability: Base 0.0.0
Returns a string containing all Objective-C @encode(...)
compatible type information.
Up