Ok. Not really a OGL question. Buuut probably ( hopfully ) a place where sombody has run into this before.
While processing events ‘by hand’ I call:
event=[ NSApp nextEventMatchingMask : NSAnyEventMask
untilDate : nil
inMode : NSDefaultRunLoopMode
dequeue : NO ]
This call always returns nil. If I set untilDate to distantFuture the call will block forever. However if I set dequeue : YES then all works as expected. So how can I simply check to see if an event exists in the event queue without removing it?