Class CPRunLoop

CPObject
    extended byCPRunLoop

@implementation CPRunLoop : CPObject

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,


Method Summary
+(CPRunLoop)currentRunLoop
          Returns the application's singleton CPRunLoop.
+(CPRunLoop)mainRunLoop
          Returns the application's singleton CPRunLoop.
-(id)init
          Initializes the receiver.
-(void)cancelPerformSelector:(SEL)aSelector target:(id)aTarget argument:(id)anArgument
          Cancels the specified selector and target.
-(void)performSelector:(SEL)aSelector target:(id)aTarget argument:(id)anArgument order:(int)anOrder modes:(CPArray)modes
          Performs the specified selector on the specified target.

Methods inherited from class CPObject
initialize, alloc, class, instanceMethodForSelector, instancesRespondToSelector, isSubclassOfClass, load, new, setVersion, superclass, version, init, autorelease, awakeAfterUsingCoder, class, classForCoder, classForKeyedArchiver, className, copy, dealloc, description, doesNotRecognizeSelector, forwardInvocation, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableCopy, performSelector, performSelector, performSelector, release, replacementObjectForArchiver, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, retain, self, superclass


Method Detail

currentRunLoop

+(CPRunLoop)currentRunLoop
Returns the application's singleton CPRunLoop.

mainRunLoop

+(CPRunLoop)mainRunLoop
Returns the application's singleton CPRunLoop.

init

-(id)init
Initializes the receiver
Returns:
the initialized receiver

cancelPerformSelector

-(void)cancelPerformSelector:(SEL)aSelector target:(id)aTarget argument:(id)anArgument
Cancels the specified selector and target.
Parameters:
aSelector - the selector of the method to invoke
aTarget - the target to invoke the method on
anArgument

performSelector

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

Created on Sat Sep 13 14:15:43 PDT 2008