Re: NSWindow Centering Problem
Re: NSWindow Centering Problem
- Subject: Re: NSWindow Centering Problem
- From: "Sean McBride" <email@hidden>
- Date: Wed, 7 May 2008 15:52:10 -0400
- Organization: Rogue Research
On 5/7/08 8:42 PM, Philip Bridson said:
>Ok very funny. Just to clarify that I had already read the
>documentation, otherwise I would not even be able to get the window
>to display on the screen - but thanks for pointing it out. However,
>I probably worded the question wrong, so I will re-phrase it: If by
>using [MyWindow center] the window does not actually center itself in
>the middle of the screen is there a method available so that it will
>actually be in the center of the screen?
>
>I am open to suggestions and directions to where I can find the
>information but sarcasm is not funny and not helpful and therefore if
>you cannot construct a helpful sentence then don't reply.
I wasn't being sarcastic. I was just trying to explain the likely
rational for the bevaviour of the API. 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.
--
____________________________________________________________
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