• 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: NSWindow Centering Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow Centering Problem


  • Subject: Re: NSWindow Centering Problem
  • From: Andy Lee <email@hidden>
  • Date: Wed, 7 May 2008 16:36:29 -0400

On May 7, 2008, at 3:52 PM, Sean McBride wrote:
I suspect that back in the
NeXTStep days it actually did centre it. But when NeXTStep merged with
Mac OS, the behaviour was changed to match the Mac OS behaviour. In
Classic Mac OS this position is called the 'alert position'. See for
example the docs for the kWindowAlertPositionMainScreen constant, and
contrast with kWindowCenterMainScreen.

After a quick test it *looks* like the ratio of top to bottom margins is 1:3, after removing the heights of the menu bar and the Dock. This is different from the ratios documented for either kWindowAlertPositionMainScreen or kWindowCenterMainScreen.


For some reason I thought Classic Mac OS used a ratio of 1:2, but that could be my memory playing tricks on me.

--Andy

_______________________________________________

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


References: 
 >NSWindow Centering Problem (From: Philip Bridson <email@hidden>)
 >Re: NSWindow Centering Problem (From: Andy Lee <email@hidden>)
 >Re: NSWindow Centering Problem (From: "Sean McBride" <email@hidden>)
 >Re: NSWindow Centering Problem (From: Philip Bridson <email@hidden>)
 >Re: NSWindow Centering Problem (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: NSWindow Centering Problem
  • Next by Date: Re: Group rotation
  • Previous by thread: Re: NSWindow Centering Problem
  • Next by thread: Re: NSWindow Centering Problem
  • Index(es):
    • Date
    • Thread