• 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: What's the replacement for GetMBarHeight?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the replacement for GetMBarHeight?


  • Subject: Re: What's the replacement for GetMBarHeight?
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 9 Feb 2008 16:03:00 -0800


On 8 Feb '08, at 7:05 PM, Brian Arnold wrote:

The Xcode 3 OSX 10.5 documentation for GetMBarHeight fails to explain what should be called in its place, or that it's not available 64-bit. I need to avoid putting windows where they shouldn't be, and my code is being called from code that isn't pure Cocoa, but I can call Cocoa from where I can figure this out. What do I call?

Use the NSScreen class to find the display(s). Their -visibleFrame rects give the areas that are OK to put windows in, avoiding both the menu bar and the Dock (if it's in always-visible mode.)


But if your windows are regular NSWindows with title bars, then you don't need to worry about this — NSWindow itself adjusts the window frame to keep it out of the menu bar or Dock.

—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: 
 >What's the replacement for GetMBarHeight? (From: Brian Arnold <email@hidden>)

  • Prev by Date: Re: Problems getting NSURLConnection to work
  • Next by Date: Re: Problems getting NSURLConnection to work
  • Previous by thread: Re: What's the replacement for GetMBarHeight?
  • Next by thread: Re: What's the replacement for GetMBarHeight?
  • Index(es):
    • Date
    • Thread