Hi All:
I've got a dialog that doesn't use
runModalForWindow because it's called from the screensaver. Instead, it uses the
following:
NSEvent *event = [NSApp
nextEventMatchingMask:NSAnyEvent
untilDate:[NSDate distantFuture] inMode:
NSDefaultRunLoopMode
dequeue:YES];
if (event)
{
[NSApp
sendEvent:theEvent];
}
This works well on Panther. On Tiger, it seems to
have a problem where, when you put the system (or let it fall) to sleep, when
the system awakes, this loop has become unresponsive. I can telnet in and check
my logs and see that where previously the log was recording that it was looping
around, when it awakes, it's no longer in it's loop. If I press a couple of keys
I get a hit in the log, and if I tap keys long enough, it'll resume its normal
state.
Is there a better way of handling the events and
passing them on?
Thanks in advance for your time.
John Cebasek
|