Skip navigation.
 
mlRe: Problem in simulating the events
FROM : Eric Schlegel
DATE : Wed Jun 21 17:39:01 2006

On Jun 21, 2006, at 7:58 AM, Gurmit Teotia wrote:

> As a workaround to above problem I'm planning not to give the click 
> facility to remote user on the menu of my application. To implement 
> the above technique I need to know the height of menu bar. I found 
> two methods:
> 1.  [NSMenuView menuBarHeight];
> 2.  [[NSApp mainMenu] menuBarHeight];
>
> First method is deprecated in 10.4 while second method is always 
> returning 0.0. From list I found that second method has some bug. 
> My application will be compatible from 10.2. Can some one suggest a 
> solution to get the height of menu bar? I cann't hide the menu bar/ 
> dock bar in my application.


You should be able to use GetMBarHeight from HIToolbox/Menus.h.

-eric

Related mailsAuthorDate
mlRe: Problem in simulating the events Gurmit Teotia Jun 19, 16:31
mlRe: Problem in simulating the events Sean Murphy Jun 19, 17:20
mlRe: Problem in simulating the events Eric Schlegel Jun 19, 17:35
mlRe: Problem in simulating the events Gurmit Teotia Jun 19, 17:36
mlRe: Problem in simulating the events Joe Baskerville Jun 19, 17:43
mlRe: Problem in simulating the events Gurmit Teotia Jun 19, 17:50
mlRe: Problem in simulating the events Mike Paquette Jun 19, 19:19
mlRe: Problem in simulating the events Gurmit Teotia Jun 20, 08:21
mlRe: Problem in simulating the events Pablo Pons Bordes Jun 20, 10:04
mlRe: Problem in simulating the events Gurmit Teotia Jun 20, 10:43
mlRe: Problem in simulating the events Pablo Pons Bordes Jun 20, 15:07
mlRe: Problem in simulating the events Gurmit Teotia Jun 20, 16:35
mlRe: Problem in simulating the events Pablo Pons Bordes Jun 20, 16:52
mlRe: Problem in simulating the events Joe Baskerville Jun 20, 17:01
mlRe: Problem in simulating the events Gurmit Teotia Jun 21, 07:19
mlRe: Problem in simulating the events Gurmit Teotia Jun 21, 16:58
mlRe: Problem in simulating the events Eric Schlegel Jun 21, 17:39
mlRe: Problem in simulating the events Ryan Britton Jun 21, 17:44
mlRe: Problem in simulating the events Gurmit Teotia Jun 22, 13:16