Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Charles Srstka
On Mar 25, 2010, at 1:10 PM, fabian wrote: > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. Honestly, it sounds like what you really want is to spin off this window into a separate process with LSUIElement

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Fri, Mar 26, 2010 at 12:05 AM, Jens Alfke wrote: > > On Mar 25, 2010, at 12:52 PM, fabian wrote: > > 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. >> > > Easy:

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Jens Alfke
On Mar 25, 2010, at 12:52 PM, fabian wrote: 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. Easy: just set window.canHide = NO; —Jens ___

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Thu, Mar 25, 2010 at 9:55 PM, Philip Mobley wrote: > On Mar 25, 2010, at 12:52 PM, fabian wrote: > > > 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 th

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
On Thu, Mar 25, 2010 at 9:25 PM, Knut Lorenzen wrote: > > So why not use [NSApp activateIgnoringOtherApps: YES], do all the stuff you > need to do and finally use [NSApp deactivate] to resign control? > > I don't need to activate the app to display a window with a level higher than NSNormalWindow

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Knut Lorenzen
Am 25.03.2010 um 20:52 schrieb fabian: > 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 am no expert here, but I don't believe that is possible. > I do know when this

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
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 t

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Knut Lorenzen
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 definit

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
Hi Joanna, Ken, Knut, 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

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Joanna Carter
Hi Fabian > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. Simply uncheck the "Hide on Deactivate" option for the window in IB. Joanna -- Joanna Carter Carter Consulting _

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Ken Thomases
On Mar 25, 2010, at 1:10 PM, fabian wrote: > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. That doesn't make any sense. You "want the menu bar to go away"? So there would be no menu bar? Or so that som

Re: Prevent NSWindow from hiding with app

2010-03-25 Thread Knut Lorenzen
Am 25.03.2010 um 19:10 schrieb fabian: > Is it possible to prevent a window from hiding when NSApp is hidden, so it > always stays on screen? I only want the menu bar to go away. Do you really mean "hidden" (like Command-H) or do you mean "not the frontmost application"? If the latter is the c

Prevent NSWindow from hiding with app

2010-03-25 Thread fabian
Is it possible to prevent a window from hiding when NSApp is hidden, so it always stays on screen? I only want the menu bar to go away. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the