Re: CFRunLoopRunInMode Return Codes
Re: CFRunLoopRunInMode Return Codes
- Subject: Re: CFRunLoopRunInMode Return Codes
- From: Chris Kane <email@hidden>
- Date: Tue, 14 Aug 2001 15:11:50 -0700
On Tuesday, August 14, 2001, at 07:14 AM, Vincent Predoehl wrote:
Hi Chris, I was wondering if you could explain the meaning of the
return codes in more detail returned by CFRunLoopRunInMode as found in
CFRunLoop.h:
/* Reasons for CFRunLoopRunInMode() to Return */
enum {
kCFRunLoopRunFinished = 1,
This means the specified run loop mode is empty, or is now empty. As an
example of that latter, suppose the run loop is blocked or running in
CFRunLoopRunInMode(), and becomes empty during that, then this will be
returned.
kCFRunLoopRunStopped = 2,
Run loop was explicitly stopped with CFRunLoopStop(). CFRunLoopStop()
affects only the top-most recursive invocation of the given run loop at
the instant CFRunLoopStop() is called; that invocation will bail out
when control returns to that invocation.
kCFRunLoopRunTimedOut = 3,
CFRunLoopRunInMode() timed out.
kCFRunLoopRunHandledSource = 4
A CFRunLoopSource was handled and the returnAfterSourceHandled parameter
was true.
If a source has been handled and returnAfterSourceHandled is true,
kCFRunLoopRunHandledSource will be returned even if other conditions
would also apply. Otherwise, the "priority" of the return codes (which
one you will get), if multiple of them would apply, is undefined (and
subject to change from release to release).
Chris Kane
Cocoa Framework, Apple