• 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: Centering a window ... not in the usual way!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Centering a window ... not in the usual way! (From: Michael Ash <email@hidden>)
 >Re: Centering a window ... not in the usual way! (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Breaking underlining on descenders
  • Next by Date: Re: [iPhone] Caching images fetched from a URL?
  • Previous by thread: Re: Centering a window ... not in the usual way!
  • Next by thread: Wrong selection Index
  • Index(es):
    • Date
    • Thread