• 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: "Sean McBride" <email@hidden>
  • Date: Wed, 7 May 2008 15:31:45 -0400
  • Organization: Rogue Research

On 5/7/08 3:06 PM, Andy Lee said:

>On May 7, 2008, at 2:59 PM, Philip Bridson wrote:
>> Can anyone tell me why when I use [MyWindow center] the window ends
>> up about an inch from the top of the screen? I thought this method
>> is meant to center the window. Is there something I am doing wrong?
>
>Only not reading the documentation. :)
>
>> center
>> Sets the receiver's location to the center of the screen.
>>
>> - (void)center
>>
>> Discussion
>> The receiver is placed exactly in the center horizontally and
>> somewhat above center vertically. [...]

No doubt roughly at the golden ratio, for aesthetic pleasantness:
<http://en.wikipedia.org/wiki/Golden_ratio>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: NSWindow Centering Problem
      • From: Philip Bridson <email@hidden>
References: 
 >NSWindow Centering Problem (From: Philip Bridson <email@hidden>)
 >Re: NSWindow Centering Problem (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: How to convert UInt8 array to NSString
  • Next by Date: Re: How to convert UInt8 array to NSString
  • Previous by thread: Re: NSWindow Centering Problem
  • Next by thread: Re: NSWindow Centering Problem
  • Index(es):
    • Date
    • Thread