Windows following the menubar in Cocoa
Windows following the menubar in Cocoa
- Subject: Windows following the menubar in Cocoa
- From: Eric Gorr <email@hidden>
- Date: Mon, 3 May 2010 18:31:24 -0400
Using Xcode 3.1.3 (or 2.5), I created a standard Carbon application with a single document window. After running the application, I use the Display System Preferences to move the menubar from one display to another one. The document window for the Carbon application followed the menubar and moved to the other display.
Doing the same thing, but this time with the default Cocoa application, the document window does not automatically move.
Is there a way to configure a Cocoa window so it will follow the menubar to another display?
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.
_______________________________________________
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