2008/9/27 Andrew Farmer <[EMAIL PROTECTED]>: > 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]