• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSApp nextEventMatchingMask Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSApp nextEventMatchingMask Question


  • Subject: NSApp nextEventMatchingMask Question
  • From: "John Cebasek" <email@hidden>
  • Date: Fri, 27 May 2005 14:04:15 -0400

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
email@hidden
 _______________________________________________
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

  • Prev by Date: How to get NSTableView to notice a change in NSTableDataModel
  • Next by Date: Re: Catch keyboard input?
  • Previous by thread: Re: How to get NSTableView to notice a change in NSTableDataModel
  • Next by thread: Interfacing PHP with Cocoa
  • Index(es):
    • Date
    • Thread