Re: How to get the current screen resolution on Mac
Re: How to get the current screen resolution on Mac
- Subject: Re: How to get the current screen resolution on Mac
- From: "Kyle Sluder" <email@hidden>
- Date: Sun, 28 Sep 2008 03:19:25 -0400
2008/9/27 Andrew Farmer <email@hidden>:
> NSScreen gives you this functionality, but it's even easier to just have
> [NSWindow center] do the job for
> you.
Just be aware that -center doesn't actually put the window in the
center of the screen. Vertically, the window is placed about 1/3 of
the way from the top -- this offers it better visual placement if your
intention is to grab the user's attention. In the case of something
like the Displays System Preferences pane, however, you really do want
to center the window, in which case you can use NSScreen.
--Kyle Sluder
_______________________________________________
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