ObjectAL
 All Classes Functions Variables Properties Pages
Instance Methods | Class Methods | Protected Attributes | List of all members
OALCallAction Class Reference

Calls a selector on a target. More...

#import <OALUtilityActions.h>

Inheritance diagram for OALCallAction:
OALAction

Instance Methods

(id) - initWithCallTarget:selector:
 Initialize an action. More...
 
(id) - initWithCallTarget:selector:withObject:
 Initialize an action. More...
 
(id) - initWithCallTarget:selector:withObject:withObject:
 Initialize an action. More...
 
- Instance Methods inherited from OALAction
(id) - initWithDuration:
 Initialize an action. More...
 
(void) - runWithTarget:
 Run this action on a target. More...
 
(void) - prepareWithTarget:
 Called by runWithTraget to do any final preparations before running. More...
 
(void) - startAction
 Called by runWithTarget to start the action running. More...
 
(void) - updateCompletion:
 Called by OALActionManager to update this action's progress. More...
 
(void) - stopAction
 Stop this action. More...
 

Class Methods

(id) + actionWithCallTarget:selector:
 Create an action. More...
 
(id) + actionWithCallTarget:selector:withObject:
 Create an action. More...
 
(id) + actionWithCallTarget:selector:withObject:withObject:
 Create an action. More...
 

Protected Attributes

id callTarget_
 The target to call the selector on. More...
 
SEL selector_
 The selector to invoke. More...
 
int numObjects_
 The number of parameters which will be passed to the selector. More...
 
id object1_
 The first object to pass to the selector, if any. More...
 
id object2_
 The second object to pass to the selector, if any. More...
 
- Protected Attributes inherited from OALAction
bool runningInManager_
 If TRUE, this action is running via OALActionManager. More...
 

Additional Inherited Members

- Properties inherited from OALAction
id target
 The target to perform the action on. More...
 
float duration
 The duration of the action, in seconds. More...
 
float elapsed
 The amount of time that has elapsed for this action, in seconds. More...
 
bool running
 If true, the action is currently running. More...
 

Detailed Description

Calls a selector on a target.

This action will ignore whatever target it is run against, and will invoke the selector on the target specified at creation time.

Method Documentation

+ (id) actionWithCallTarget: (id)  callTarget
selector: (SEL)  selector 

Create an action.

Parameters
callTargetThe target to call.
selectorThe selector to invoke.
Returns
A new action.
+ (id) actionWithCallTarget: (id)  callTarget
selector: (SEL)  selector
withObject: (id)  object 

Create an action.

Parameters
callTargetThe target to call.
selectorThe selector to invoke.
objectThe object to pass to the selector.
Returns
A new action.
+ (id) actionWithCallTarget: (id)  callTarget
selector: (SEL)  selector
withObject: (id)  firstObject
withObject: (id)  secondObject 

Create an action.

Parameters
callTargetThe target to call.
selectorThe selector to invoke.
firstObjectThe first object to pass to the selector.
secondObjectThe second object to pass to the selector.
Returns
A new action.
- (id) initWithCallTarget: (id)  callTarget
selector: (SEL)  selector 

Initialize an action.

Parameters
callTargetThe target to call.
selectorThe selector to invoke.
Returns
The initialized action.
- (id) initWithCallTarget: (id)  callTarget
selector: (SEL)  selector
withObject: (id)  object 

Initialize an action.

Parameters
callTargetThe target to call.
selectorThe selector to invoke.
objectThe object to pass to the selector.
Returns
Initialize an action.
- (id) initWithCallTarget: (id)  callTarget
selector: (SEL)  selector
withObject: (id)  firstObject
withObject: (id)  secondObject 

Initialize an action.

Parameters
callTargetThe target to call.
selectorThe selector to invoke.
firstObjectThe first object to pass to the selector.
secondObjectThe second object to pass to the selector.
Returns
The initialized action.

Member Data Documentation

- (id) callTarget_
protected

The target to call the selector on.

- (int) numObjects_
protected

The number of parameters which will be passed to the selector.

- (id) object1_
protected

The first object to pass to the selector, if any.

- (id) object2_
protected

The second object to pass to the selector, if any.

- (SEL) selector_
protected

The selector to invoke.


The documentation for this class was generated from the following files: