The GDCallback wraps an NSInvocation and NSMethodSignature to simplify creating callbacks using those two classes. More...
#import <GDCallback.h>
Public Member Functions | |
| (void) | - execute |
| Execute's this callback. | |
| (void) | - executeOnMainThread |
| Execute's this callback on the main thread. | |
| (void) | - getReturnValue: |
| Get's the return value from the internal NSInvocation object. | |
| (id) | - initWithTarget:andAction: |
| Initialize this with a target and action. | |
| (id) | - initWithTarget:andAction:andArgs: |
| Initialize this with a target, action and arguments. | |
| (void) | - setupInvoker |
| [internal] | |
Protected Attributes | |
| NSInvocation * | invoker |
| An NSInvocation. | |
| NSMethodSignature * | signature |
| An NSMethodSignature. | |
Properties | |
| NSArray * | args |
| Arguments to send to the target/selector. | |
| id | target |
| The callback target. | |
| BOOL | executesOnMainThread |
| Whether or not this callback executes on the main thread. | |
| SEL | action |
| The selector. | |
The GDCallback wraps an NSInvocation and NSMethodSignature to simplify creating callbacks using those two classes.
| - (void) getReturnValue: | (void *) | _resultAddress |
Get's the return value from the internal NSInvocation object.
| _resultAddress | A pointer to the storage where you want the results delivered to. |
| - (id) initWithTarget: | (id) | _target | ||
| andAction: | (SEL) | _action | ||
Initialize this with a target and action.
| _target | The target to call on. | |
| _action | The selector to send. |
| - (id) initWithTarget: | (id) | _target | ||
| andAction: | (SEL) | _action | ||
| andArgs: | (NSArray *) | _args | ||
Initialize this with a target, action and arguments.
| _target | The target to call on. | |
| _action | The selector to send. | |
| _args | The arguments to send to the callback. |
- (NSArray *) args [read, write, retain] |
Arguments to send to the target/selector.
The arguments for the target/selector.