• 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: 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


  • Follow-Ups:
    • Re: Windows following the menubar in Cocoa
      • From: Eric Gorr <email@hidden>
References: 
 >Windows following the menubar in Cocoa (From: Eric Gorr <email@hidden>)

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