Centering a window on the *current* screen, not the *main* screen
Centering a window on the *current* screen, not the *main* screen
- Subject: Centering a window on the *current* screen, not the *main* screen
- From: Oleg Krupnov <email@hidden>
- Date: Tue, 26 Jan 2010 12:10:49 +0200
Hi,
It seems that [NSWindow center] centers the window on the *main* screen.
Now how do I center a window on the screen it currently shows on, on a
multi-monitor Mac?
I could write my own code to position the window, but I don't know how
to reproduce the recommended position of the centered window, which is
slightly above the center.
Thanks!
_______________________________________________
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