Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/20000013-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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/greg %40kinostudios.com


This email sent to email@hidden

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >How to keep a window always in foreground? (From: Greg <email@hidden>)
 >Re: How to keep a window always in foreground? (From: Markus Spoettl <email@hidden>)
 >Re: How to keep a window always in foreground? (From: Greg <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.