• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keeping NSWindow below all other windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping NSWindow below all other windows


  • Subject: Re: Keeping NSWindow below all other windows
  • From: PCWiz <email@hidden>
  • Date: Sat, 3 Oct 2009 17:21:12 -0600

Thanks, that works :-)

On 2009-10-03, at 12:14 PM, Alexander Heinz wrote:

You could just use (NSNormalWindowLevel - 1). That should be clear to anyone reading the code that you want the level below the lowest.

- Alex

On Oct 3, 2009, at 2:04 PM, 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 <email@hidden> 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_(programming)#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-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


  • Follow-Ups:
    • Re: Keeping NSWindow below all other windows
      • From: Jens Alfke <email@hidden>
References: 
 >Keeping NSWindow below all other windows (From: PCWiz <email@hidden>)
 >Re: Keeping NSWindow below all other windows (From: Ron Fleckner <email@hidden>)
 >Re: Keeping NSWindow below all other windows (From: PCWiz <email@hidden>)
 >Re: Keeping NSWindow below all other windows (From: Sherm Pendley <email@hidden>)
 >Re: Keeping NSWindow below all other windows (From: PCWiz <email@hidden>)

  • Prev by Date: main nib, firing a secondary nib and it's controller....
  • Next by Date: Working with an Unsupported Character Encoding (ANSEL)
  • Previous by thread: Re: Keeping NSWindow below all other windows
  • Next by thread: Re: Keeping NSWindow below all other windows
  • Index(es):
    • Date
    • Thread