API  0.9.10
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
(void) - invalidateTimerWithDelayedPerform:
(CPDate- limitDateForMode:
(void) - performBlock:argument:order:modes:
(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:
(void) - performSelector:withObject:afterDelay:
(void) - performSelector:withObject:afterDelay:inModes:
(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:
(void) + cancelPreviousPerformRequestsWithTarget:
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
(Class) + class
(BOOL) + conformsToProtocol:
(void) + exposeBinding:
(IMP) + instanceMethodForSelector:
(BOOL) + instancesImplementSelector:
(BOOL) + instancesRespondToSelector:
(BOOL) + isBindingExclusive:
(BOOL) + isSubclassOfClass:
(CPSet) + keyPathsForValuesAffectingValueForKey:
(void) + load
(id) + new
(void) + object:performSelector:withObject:afterDelay:inModes:
(void) + setVersion:
(Class) + superclass
(int) + version

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

◆ addTimer:forMode:()

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

Registers a given timer with a given input mode.

Definition at line 313 of file CPRunLoop.j.

◆ cancelPerformSelector:target:argument:()

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

Cancels the specified selector and target.

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

Definition at line 289 of file CPRunLoop.j.

◆ currentRunLoop()

+ (CPRunLoop) currentRunLoop

Returns the application's singleton CPRunLoop.

Definition at line 232 of file CPRunLoop.j.

◆ init()

- (id) init

Initializes the receiver

the initialized receiver

Reimplemented from CPObject.

Definition at line 212 of file CPRunLoop.j.

◆ initialize()

+ (void) initialize

Reimplemented from CPObject.

Definition at line 204 of file CPRunLoop.j.

◆ invalidateTimerWithDelayedPerform:()

- (void) invalidateTimerWithDelayedPerform: (CPDelayedPerform aDelayedPerform

Provided by category CPRunLoop(CPDelayedPerform).

Definition at line 87 of file CPDelayedPerform.j.

◆ limitDateForMode:()

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

◆ mainRunLoop()

+ (CPRunLoop) mainRunLoop

Returns the application's singleton CPRunLoop.

Definition at line 240 of file CPRunLoop.j.

◆ performBlock:argument:order:modes:()

- (void) performBlock: (Function)  aBlock
argument: (id)  anArgument
order: (int)  anOrder
modes: (CPArray)  modes 

Definition at line 270 of file CPRunLoop.j.

◆ performSelector:target:argument:order:modes:()

- (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.

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

◆ performSelectors()

- (void) performSelectors

Definition at line 305 of file CPRunLoop.j.

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