CPRunLoop Class Reference
[Foundation]

The main run loop for the application. More...

List of all members.

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]

Detailed Description

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.


Member Function Documentation

- (void) addTimer: (CPTimer aTimer
forMode: (CPString aMode 
[implementation]

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.

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

- (CPDate) limitDateForMode: (CPString aMode   [implementation]

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.

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


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

Generated on Fri Apr 9 11:04:22 2010 for Cappuccino API by  doxygen 1.6.1