• 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
Re: Windows following the menubar in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows following the menubar in Cocoa


  • Subject: Re: Windows following the menubar in Cocoa
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 3 May 2010 15:39:25 -0700


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

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.

I suspect this is done to Carbon apps to keep them from breaking, since otherwise the window's global coordinates would change behind its back. Back in the day (during OS X 10.0 development) there were a lot of problems with having non-app code move Carbon windows, which is one reason why they're not draggable while the app is busy.


So in short, this is a workaround, not a feature. I wouldn't expect an app window to move to follow the menu bar. But maybe your app has some special behavior that makes that behavior desirable? Your idea of the NSApp delegate call seems like a good way to implement that.

—Jens_______________________________________________

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


References: 
 >Windows following the menubar in Cocoa (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: My program causes MacBook Pro to use NVidia graphics processor
  • Next by Date: Re: Windows following the menubar in Cocoa
  • Previous by thread: Windows following the menubar in Cocoa
  • Next by thread: Re: Windows following the menubar in Cocoa
  • Index(es):
    • Date
    • Thread