Re: Windows following the menubar in Cocoa
Re: Windows following the menubar in Cocoa
- Subject: Re: Windows following the menubar in Cocoa
- From: Murat Konar <email@hidden>
- Date: Mon, 3 May 2010 15:48:52 -0700
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 (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