• 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: NSMenu menuBarHeight is 0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenu menuBarHeight is 0?


  • Subject: Re: NSMenu menuBarHeight is 0?
  • From: Daniel Jalkut <email@hidden>
  • Date: Mon, 24 Oct 2005 11:48:54 -0400

I just added:

NSLog(@"%f", [[NSApp mainMenu] menuBarHeight]);

To one of my applications, and observed the same problem. So your situation doesn't sound too unusual. I suspect it's simply a bug. Maybe a situation where the documentation got a little ahead of the engineering?

Either that or we're both especially unlucky :)

Daniel

On Oct 24, 2005, at 11:18 AM, Jonathan del Strother wrote:

I'm trying to find the menu bar height, by calling [[[NSApplication sharedApplication] mainMenu] menuBarHeight]. It's returning 0.

[[NSApplication sharedApplication] mainMenu] is giving me the correct object. [NSMenuView menuBarHeight] returns the correct height, but is apparently deprecated (presumably to make way for the scalable display technology?).

Any suggestions why menuBarHeight is giving me the wrong value?


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSMenu menuBarHeight is 0? (From: Jonathan del Strother <email@hidden>)

  • Prev by Date: NSMenu menuBarHeight is 0?
  • Next by Date: Re: How to find out if horizontal scrollbar in WebView is currently active or not
  • Previous by thread: NSMenu menuBarHeight is 0?
  • Next by thread: Re: NSMenu menuBarHeight is 0?
  • Index(es):
    • Date
    • Thread