Re: NSWindow Centering Problem
Re: NSWindow Centering Problem
- Subject: Re: NSWindow Centering Problem
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 7 May 2008 21:11:56 +0200
Le 7 mai 08 à 20:59, Philip Bridson a écrit :
Hi there,
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?
Many thanks,
Phil.
Reading the doc ?
«The receiver is placed exactly in the center horizontally and
somewhat above center vertically. Such a placement carries a certain
visual immediacy and importance. This method doesn’t put the receiver
onscreen, however; use makeKeyAndOrderFront: to do that.»
_______________________________________________
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