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: Andrew Farmer <email@hidden>
- Date: Sat, 27 Sep 2008 19:43:43 -0700
On 27 Sep 08, at 18:00, 熊佳 wrote:
Hi, All, I am a newcomer, I write a simple program on mac, and
want to display the main window at the center of screen, i mean the
window's position should depends on the screen's width and height,
so i need to get the screen resolution, who can tell me how to get
it? which api is available?
NSScreen gives you this functionality, but it's even easier to just
have [NSWindow center] do the job for you._______________________________________________
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