API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPRunLoop Class Reference

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

#import <CPRunLoop.h>

+ Inheritance diagram for CPRunLoop:

Instance Methods

(void) - addTimer:forMode:
 
(void) - cancelPerformSelector:target:argument:
 
(id) - init
 
(CPDate- limitDateForMode:
 
(void) - performSelector:target:argument:order:modes:
 
(void) - performSelectors
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(CPRunLoop+ currentRunLoop
 
(void) + initialize
 
(CPRunLoop+ mainRunLoop
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

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 
implementation

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 
implementation

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
implementation

Returns the application's singleton CPRunLoop.

Definition at line 190 of file CPRunLoop.j.

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPObject.

Definition at line 171 of file CPRunLoop.j.

+ (void) initialize
implementation

Reimplemented from CPObject.

Definition at line 163 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 284 of file CPRunLoop.j.

+ (CPRunLoop) mainRunLoop
implementation

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 
implementation

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
implementation

Definition at line 246 of file CPRunLoop.j.


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