Re: Blocking loops
Re: Blocking loops
- Subject: Re: Blocking loops
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 16 Jun 2006 09:05:09 -0700
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden