Skip navigation.
 
mlRe: Blocking loops
FROM : Bill Bumgarner
DATE : Fri Jun 16 18:05:09 2006

On Jun 16, 2006, at 7:34 AM, Andreas Känner wrote:
> Maybe that's not the best approach but the equivalent to DoEvents() 
> is this:
>
> [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate 
> distantFuture] inMode:NSDefaultRunLoopMode dequeue:NO];


Don't do that.  Or, at least, don't do that and expect anything like 
normal event processing or responsiveness to happen in your app.

From the documentation:
   Returns the next event matching a given mask, or nil if no such 
event is found before a specified expiration date.

http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html

Related mailsAuthorDate
mlBlocking loops cocoa Jun 16, 15:24
mlRe: Blocking loops Shawn Erickson Jun 16, 16:20
mlRe: Blocking loops Andreas Känner Jun 16, 16:34
mlRe: Blocking loops Nicko van Someren Jun 16, 16:41
mlRe: Blocking loops A.M. Jun 16, 17:19
mlRe: Blocking loops Bill Bumgarner Jun 16, 18:05
mlRe: Blocking loops Bill Bumgarner Jun 16, 19:27
mlRe: Blocking loops A.M. Jun 16, 19:59
mlRe: Blocking loops Bill Bumgarner Jun 16, 20:11
mlRe: Blocking loops Drarok Ithaqua Jun 16, 21:47
mlRe: Blocking loops Shawn Erickson Jun 16, 21:53
mlRe: Blocking loops Michael Ash Jun 17, 17:31
mlRe: Blocking loops Agent M Jun 17, 20:53
mlRe: Blocking loops Bill Bumgarner Jun 19, 23:06
mlRe: Blocking loops Michael Ash Jun 21, 00:58