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
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 mails | Author | Date |
|---|---|---|
| cocoa | Jun 16, 15:24 | |
| Shawn Erickson | Jun 16, 16:20 | |
| Andreas Känner | Jun 16, 16:34 | |
| Nicko van Someren | Jun 16, 16:41 | |
| A.M. | Jun 16, 17:19 | |
| Bill Bumgarner | Jun 16, 18:05 | |
| Bill Bumgarner | Jun 16, 19:27 | |
| A.M. | Jun 16, 19:59 | |
| Bill Bumgarner | Jun 16, 20:11 | |
| Drarok Ithaqua | Jun 16, 21:47 | |
| Shawn Erickson | Jun 16, 21:53 | |
| Michael Ash | Jun 17, 17:31 | |
| Agent M | Jun 17, 20:53 | |
| Bill Bumgarner | Jun 19, 23:06 | |
| Michael Ash | Jun 21, 00:58 |






Cocoa mail archive

