Re: Prevent NSWindow from hiding with app
Re: Prevent NSWindow from hiding with app
- Subject: Re: Prevent NSWindow from hiding with app
- From: fabian <email@hidden>
- Date: Thu, 25 Mar 2010 21:46:32 +0100
On Thu, Mar 25, 2010 at 9:25 PM, Knut Lorenzen <email@hidden> 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 NSNormalWindowLevel. This works fine even when the app is hidden. The
only problem is the situation described above, when the app is frontmost and
the user actively decides to hide it. Then all visible windows are ordered
out (by NSApp, I presume, or perhaps the window manager? I haven't really
looked into this yet).
As for it not being possible, that's what I'm thinking too, as my googling
has lead to nothing. But I figured it was worth asking anyhow, in case there
is some snazzy method in NSApp I'm not aware of that I can override.
-F
_______________________________________________
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