On May 3, 2010, at 3:31 PM, Eric Gorr wrote:

Is there a way to configure a Cocoa window so it will follow the menubar to another display?

Is it even a good idea? Seems like there's more to be done than just move a window (like maybe not moving it if it won't fit, resizing it etc).

I'm assuming there isn't as I have not seen such an option...unless I missed something.

I assume the appropriate way to handle this in Cocoa is to respond to NSApplication's -applicationDidChangeScreenParameters: delegate method and move the window myself.

Yes. Just remember that the screen with the menu bar is not the "main" screen (as it was in the old days), it's the first screen in the array returned by +[NSScreen screens].

_murat
_______________________________________________

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 arch...@mail-archive.com

Reply via email to