The main run loop for the application. More...
Public Member Functions | |
(void) | - addTimer:forMode: [implementation] |
(void) | - cancelPerformSelector:target:argument: [implementation] |
(id) | - init [implementation] |
(CPDate) | - limitDateForMode: [implementation] |
(void) | - performSelector:target:argument:order:modes: [implementation] |
(void) | - performSelectors [implementation] |
Static Public Member Functions | |
(CPRunLoop) | + currentRunLoop [implementation] |
(void) | + initialize [implementation] |
(CPRunLoop) | + mainRunLoop [implementation] |
The main run loop for the application.
CPRunLoop instances handle various utility tasks that must be performed repetitively in an application, such as processing input events.
There is one run loop per application, which may always be obtained through the +currentRunLoop method,
Definition at line 149 of file CPRunLoop.j.
Registers a given timer with a given input mode.
Definition at line 256 of file CPRunLoop.j.
- (void) cancelPerformSelector: | (SEL) | aSelector | ||
target: | (id) | aTarget | ||
argument: | (id) | anArgument | ||
[implementation] |
Cancels the specified selector and target.
aSelector | the selector of the method to invoke | |
aTarget | the target to invoke the method on | |
the | argument for the method |
Definition at line 232 of file CPRunLoop.j.
+ (CPRunLoop) currentRunLoop | [implementation] |
Returns the application's singleton CPRunLoop.
Definition at line 192 of file CPRunLoop.j.
- (id) init | [implementation] |
Definition at line 173 of file CPRunLoop.j.
+ (void) initialize | [implementation] |
Definition at line 165 of file CPRunLoop.j.
Performs one pass through the run loop in the specified mode and returns the date at which the next timer is scheduled to fire.
Definition at line 275 of file CPRunLoop.j.
+ (CPRunLoop) mainRunLoop | [implementation] |
Returns the application's singleton CPRunLoop.
Definition at line 200 of file CPRunLoop.j.
- (void) performSelector: | (SEL) | aSelector | ||
target: | (id) | aTarget | ||
argument: | (id) | anArgument | ||
order: | (int) | anOrder | ||
modes: | (CPArray) | modes | ||
[implementation] |
Performs the specified selector on the specified target. The method will be invoked synchronously.
aSelector | the selector of the method to invoke | |
aTarget | the target of the selector | |
anArgument | the method argument | |
anOrder | the message priority | |
modes | the modes variable isn't respected. |
Definition at line 213 of file CPRunLoop.j.
- (void) performSelectors | [implementation] |
Definition at line 248 of file CPRunLoop.j.