Re: NSMenu menuBarHeight is 0?
Re: NSMenu menuBarHeight is 0?
- Subject: Re: NSMenu menuBarHeight is 0?
- From: Scott Thompson <email@hidden>
- Date: Mon, 24 Oct 2005 12:18:57 -0500
On Oct 24, 2005, at 10: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?
An interesting question is what behavior are you trying to put into
your application where you need to know the main menubar's height.
There may be a better way of solving your problem.
Scott
_______________________________________________
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