Re: NSWindow Centering Problem
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