Re: How to keep a window always in foreground?
Greg wrote: On Jul 4, 2008, at 2:17 PM, Markus Spoettl wrote: I think what you are looking for is the window level: http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2013-BCICJDAF Hi, sorry, I meant to say level instead of "layer" in my original email. I'm already doing this but it doesn't work. The application that's displaying the window is an LSUIElement hidden application, if that helps. When it displays the window it *does* go above all windows, *but* when I switch to the window, and then away from it, it becomes occluded by whatever I switched to. Then either you're not successfully setting the level or you're not setting it to a high enough level. What level *are* you setting it to? ___ 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 [EMAIL PROTECTED]
Re: How to keep a window always in foreground?
Oh! Actually, it was because the window was being run as modal. Make sure the window is not being run in a modal loop and it should work. - Greg On Jul 4, 2008, at 5:19 PM, Greg wrote: Sorry, suddenly it works, I think that during my attempts at "fixing" it I had some code running that would cause the setLevel code to be ineffective. It works now, simply setting the level does the trick. Just a note to anyone else experiencing problems with this, make sure that you don't have any other code "trying to make it work". I feel silly. :-p - Greg On Jul 4, 2008, at 2:27 PM, Greg wrote: On Jul 4, 2008, at 2:17 PM, Markus Spoettl wrote: I think what you are looking for is the window level: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2013-BCICJDAF Hi, sorry, I meant to say level instead of "layer" in my original email. I'm already doing this but it doesn't work. The application that's displaying the window is an LSUIElement hidden application, if that helps. When it displays the window it *does* go above all windows, *but* when I switch to the window, and then away from it, it becomes occluded by whatever I switched to. - Greg ___ 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/greg%40kinostudios.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: How to keep a window always in foreground?
Sorry, suddenly it works, I think that during my attempts at "fixing" it I had some code running that would cause the setLevel code to be ineffective. It works now, simply setting the level does the trick. Just a note to anyone else experiencing problems with this, make sure that you don't have any other code "trying to make it work". I feel silly. :-p - Greg On Jul 4, 2008, at 2:27 PM, Greg wrote: On Jul 4, 2008, at 2:17 PM, Markus Spoettl wrote: I think what you are looking for is the window level: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2013-BCICJDAF Hi, sorry, I meant to say level instead of "layer" in my original email. I'm already doing this but it doesn't work. The application that's displaying the window is an LSUIElement hidden application, if that helps. When it displays the window it *does* go above all windows, *but* when I switch to the window, and then away from it, it becomes occluded by whatever I switched to. - Greg ___ 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/greg %40kinostudios.com This email sent to [EMAIL PROTECTED] ___ 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 [EMAIL PROTECTED]
Re: How to keep a window always in foreground?
On Jul 4, 2008, at 2:17 PM, Markus Spoettl wrote: I think what you are looking for is the window level: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2013-BCICJDAF Hi, sorry, I meant to say level instead of "layer" in my original email. I'm already doing this but it doesn't work. The application that's displaying the window is an LSUIElement hidden application, if that helps. When it displays the window it *does* go above all windows, *but* when I switch to the window, and then away from it, it becomes occluded by whatever I switched to. - Greg ___ 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 [EMAIL PROTECTED]
Re: How to keep a window always in foreground?
On Jul 4, 2008, at 10:51 AM, Greg wrote: I've searched the list but haven't been able to find out how to *always* keep a window in the foreground. If you set the layer on it and display it, it will appear above all windows, but you can still obscure it by switching to another application. How do I keep it floating in front regardless of what application is active? I think what you are looking for is the window level: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2013-BCICJDAF Regards Markus -- __ Markus Spoettl smime.p7s Description: S/MIME cryptographic signature ___ 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 [EMAIL PROTECTED]
How to keep a window always in foreground?
I've searched the list but haven't been able to find out how to *always* keep a window in the foreground. If you set the layer on it and display it, it will appear above all windows, but you can still obscure it by switching to another application. How do I keep it floating in front regardless of what application is active? Thanks! - Greg ___ 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 [EMAIL PROTECTED]