An object representation of a message. More...
#import <CPInvocation.h>
Class Methods | |
(id) | + invocationWithMethodSignature: |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
An object representation of a message.
A CPInvocation is an object representation of a message sent to an object.
Definition at line 2 of file CPInvocation.h.
|
implementation |
Returns the argument at the specified index. Arguments 0 and 1 are self
and _cmd
respectively. Thus, method arguments start at 2.
anIndex | the index of the argument to return |
CPInvalidArgumentException | if anIndex is greater than or equal to the invocation's number of arguments. |
Definition at line 117 of file CPInvocation.j.
|
implementation |
Writes out the invocation's data to the provided coder.
aCoder | the coder to which the data will be written |
Provided by category CPInvocation(CPCoding).
Definition at line 187 of file CPInvocation.j.
|
implementation |
Initializes the invocation with data from a coder.
aCoder | the coder from which to obtain initialization data |
Provided by category CPInvocation(CPCoding).
Definition at line 170 of file CPInvocation.j.
|
implementation |
Initializes the invocation with a provided method signature
aMethodSignature | the signature of the method to message |
Definition at line 53 of file CPInvocation.j.
|
implementation |
Returns a new CPInvocation that represents a message to a method.
aMethodSignature | the signature of the method to message |
Definition at line 43 of file CPInvocation.j.
|
implementation |
Sends the encapsulated message to the stored target.
Definition at line 143 of file CPInvocation.j.
|
implementation |
Sends the encapsulated message to the specified target.
the | target to which the message will be sent |
Definition at line 152 of file CPInvocation.j.
|
implementation |
Returns the invocation's return value
Definition at line 134 of file CPInvocation.j.
|
implementation |
Returns the invocation's selector
Definition at line 79 of file CPInvocation.j.
|
implementation |
Sets a method argument for the invocation. Arguments 0 and 1 are self
and _cmd
.
anArgument | the argument to add |
anIndex | the index of the argument in the method |
Definition at line 106 of file CPInvocation.j.
|
implementation |
Sets the invocation's return value
the | invocation return value |
Definition at line 126 of file CPInvocation.j.
|
implementation |
Sets the invocation's selector.
the | invocation selector |
Definition at line 71 of file CPInvocation.j.
|
implementation |
Sets the invocation's target
aTarget | the invocation target |
Definition at line 88 of file CPInvocation.j.
|
implementation |
Returns the invocation's target
Definition at line 96 of file CPInvocation.j.