Re: Centering a window ... not in the usual way!
Re: Centering a window ... not in the usual way!
- Subject: Re: Centering a window ... not in the usual way!
- From: Benjamin Stiglitz <email@hidden>
- Date: Wed, 13 May 2009 14:25:51 -0400
- Mail-followup-to: email@hidden
> I am not sure of Mic's intent, but [window center] is only useful for the
> main screen. If you need per-screen windows, I am not sure how to have the
> OS do it. Given a few different resolutions though, it should not be hard to
> deduce the OS positioning algorithm.
For what it's worth: the center algorithm currently places the center of
the window 3/4 of the way up from the bottom of the main screen's frame,
and then makes any adjustments necessary to keep the window title on the
screen. This definition may very well change in a future release, but is
true as of Mac OS X 10.5.
Please do file a bug if you'd like to see API and/or better
documentation for determining the proper attention position for a
window.
-Ben
_______________________________________________
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