API 0.9.5
CPRunLoop Class Reference

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

#import <CPRunLoop.h>

Inheritance diagram for CPRunLoop:

List of all members.

Instance Methods

(void) - addTimer:forMode:
(void) - cancelPerformSelector:target:argument:
(id) - init
(CPDate- limitDateForMode:
(void) - performSelector:target:argument:order:modes:
(void) - performSelectors

Class Methods

(CPRunLoop+ currentRunLoop
(void) + initialize
(CPRunLoop+ mainRunLoop

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 2 of file CPRunLoop.h.


Method Documentation

- (void) addTimer: (CPTimer aTimer
forMode: (CPString aMode 

Registers a given timer with a given input mode.

Definition at line 254 of file CPRunLoop.j.

- (void) cancelPerformSelector: (SEL)  aSelector
target: (id)  aTarget
argument: (id)  anArgument 

Cancels the specified selector and target.

Parameters:
aSelectorthe selector of the method to invoke
aTargetthe target to invoke the method on
theargument for the method

Definition at line 230 of file CPRunLoop.j.

+ (CPRunLoop) currentRunLoop

Returns the application's singleton CPRunLoop.

Definition at line 190 of file CPRunLoop.j.

- (id) init

Definition at line 171 of file CPRunLoop.j.

+ (void) initialize

Definition at line 163 of file CPRunLoop.j.

- (CPDate) limitDateForMode: (CPString aMode

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 284 of file CPRunLoop.j.

+ (CPRunLoop) mainRunLoop

Returns the application's singleton CPRunLoop.

Definition at line 198 of file CPRunLoop.j.

- (void) performSelector: (SEL)  aSelector
target: (id)  aTarget
argument: (id)  anArgument
order: (int)  anOrder
modes: (CPArray modes 

Performs the specified selector on the specified target. The method will be invoked synchronously.

Parameters:
aSelectorthe selector of the method to invoke
aTargetthe target of the selector
anArgumentthe method argument
anOrderthe message priority
modesthe modes variable isn't respected.

Definition at line 211 of file CPRunLoop.j.

- (void) performSelectors

Definition at line 246 of file CPRunLoop.j.


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