• 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
UIElement activation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIElement activation


  • Subject: UIElement activation
  • From: Thierry Passeron <email@hidden>
  • Date: Thu, 19 Jan 2006 00:39:01 +0100

Hello everybody,
Thanks to some good advices from Joar, my application is improving.
Now I'm facing a new problem. My app is an UIElement app that stays in
background until it's activated by an hotkey combo. When I run it
first, the application is activated, the window is key and ordered
front, I can type something on the keyboard, the app gets it.
But, after a while the app goes to sleep and should'nt be the active
app anymore. Now the problem is that if I type the hotkey again, the
window appears but no keyboard handling, the focus is still on an
other app even with my window orderedFront.

Do I have to post a special notification to
NSDistributedNotificationCenter defaultCenter in my hotkey handling
method to get the app active again ?
And one notification to resign active when the app goes to  sleep ?

Best regards,
Thierry Passeron
France
 _______________________________________________
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

  • Follow-Ups:
    • Re: UIElement activation
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Can't reopen last-saved document (NSPersistentDocument)
  • Next by Date: Re: (hopefully) simple newb question
  • Previous by thread: Re: NSTask -launch Freezes
  • Next by thread: Re: UIElement activation
  • Index(es):
    • Date
    • Thread