• 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
How to avoid deactivation of window below utility window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to avoid deactivation of window below utility window


  • Subject: How to avoid deactivation of window below utility window
  • From: Peter Hoerster <email@hidden>
  • Date: Sun, 9 Mar 2008 20:09:36 +0100

Hi,
I have a background application which displays a floating utility window on request via hotkey. If the user clicks any item in my window, the window of the formerly front application gets deactivated. This is unfortunate because the utility window should do something in the other programs window.
If however the command-key is pressed, then the window below stays in active state, exactly the way I need it.
Under Carbon the behavior of utility windows is different. You can click it and the other programs window never gets activated without the need to hold the command-key.
If I set [self setIgnoresMouseEvents:YES]; in the init method of my window, then I can avoid deactivation, but unfortunately I do not receive the mouseDown events any longer.
Is there a clean way in Cocoa to make a globally floating utility window behaving the same way as a Carbon utility window behaves?
Thanks a lot for any insights.
Peter
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to avoid deactivation of window below utility window
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Undo the binding value
  • Next by Date: Re: How to avoid deactivation of window below utility window
  • Previous by thread: Undo the binding value
  • Next by thread: Re: How to avoid deactivation of window below utility window
  • Index(es):
    • Date
    • Thread