• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Windows following the menubar in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Windows following the menubar in Cocoa
      • From: Murat Konar <email@hidden>
    • Re: Windows following the menubar in Cocoa
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Selecting an object based on the value of one of its attributes
  • Next by Date: Re: Selecting an object based on the value of one of its attributes
  • Previous by thread: Re: Selecting an object based on the value of one of its attributes
  • Next by thread: Re: Windows following the menubar in Cocoa
  • Index(es):
    • Date
    • Thread