Sorry for being unclear. I want NSApp to behave normally, i.e. when the user hides it (with Command+H) the menu bar and all windows _except this one window_ should hide. I do know when this floating window is supposed to be on screen and when it's not; it's displayed for a few seconds in response to a hotkey - but I don't want to have to delay the hiding of NSApp until the window has been ordered out (if the user decides to hide it when the window is on screen). I hope this clarifies my goal.
On Thu, Mar 25, 2010 at 8:37 PM, Knut Lorenzen <k...@macdisk.de> wrote: > > Am 25.03.2010 um 19:44 schrieb fabian: > > > Thanks, but the "Hide on Deactivate" option only works when NSApp is > > deactived, not hidden (as in Command+H). The window I want to stay on > screen > > is a system wide icon window like the one you see when adjusting screen > > brightness, so it's most definitely the expected behavior from a user > > perspective. > > It is still unclear to me, what exactly you want to accomplish. Is your app > notified in any way if it needs to display the window (say, by a keydown, > like the brightness control you have mentioned)? > > Perhaps [NSApp activateIgnoringOtherApps: YES]; would be useful then? > Again, I (we?) don't understand precisely what you actually want to do. > > Cheers, > > Knut > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com