How to avoid deactivation of window below utility window
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