So logically you would specify your window to be:

[myWindow setLevel:(NSNormalWindowLevel - 1)];

On 3 Oct 2009, at 19:04, PCWiz wrote:

The lowest constant I could find was 0 (NSNormalWindowLevel) and it still positioned itself above other windows. Is there a constant for -1 ?

On 2009-10-03, at 11:44 AM, Sherm Pendley wrote:

On Sat, Oct 3, 2009 at 1:32 PM, PCWiz <pcwiz.supp...@gmail.com> wrote:

On 2009-10-03, at 10:44 AM, Ron Fleckner wrote:


[myWindow setLevel:<anNSWindowLevelConstant>];

check the docs.

Thanks, setting the window level to -1 worked :)

Don't do that. Magic numbers are considered very poor programming:

<http://en.wikipedia.org/wiki/Magic_number_%28programming%29#Unnamed_numerical_constants >

As Ron suggested - use one of the window level constants that are
described in the docs. That's why they're there!

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net

_______________________________________________

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/cocoadev%40mikeabdullah.net

This email sent to cocoa...@mikeabdullah.net

_______________________________________________

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

Reply via email to