GDCallback Class Reference

The GDCallback wraps an NSInvocation and NSMethodSignature to simplify creating callbacks using those two classes. More...

#import <GDCallback.h>

List of all members.

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.

Detailed Description

The GDCallback wraps an NSInvocation and NSMethodSignature to simplify creating callbacks using those two classes.


Member Function Documentation

- (void) getReturnValue: (void *)  _resultAddress  

Get's the return value from the internal NSInvocation object.

Parameters:
_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.

Parameters:
_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.

Parameters:
_target The target to call on.
_action The selector to send.
_args The arguments to send to the callback.

Property Documentation

- (NSArray *) args [read, write, retain]

Arguments to send to the target/selector.

The arguments for the target/selector.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines