![]() |
cocos2d-iphone
2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
|
#import <CCActionInstant.h>
Public Member Functions | |
(id) | - initWithBlock:object: |
(void) | - execute |
Static Public Member Functions | |
(id) | + actionWithBlock:object: |
Protected Attributes | |
void(^ | _block )(id object) |
id | _object |
Properties | |
id | object |
Executes a callback using a block with a single NSObject parameter.
+ (id) actionWithBlock: | (id object) | block | |
object: | (id) | object | |
creates the action with the specified block, to be used as a callback. The block will be "copied".
- (void) execute |
executes the callback
- (id) initWithBlock: | (id object) | block | |
object: | (id) | object | |
initialized the action with the specified block, to be used as a callback. The block will be "copied".
- (id) object [read, write, retain] |
object to be passed to the block