Re: What's the replacement for GetMBarHeight?
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