Re: Problem in simulating the events
Re: Problem in simulating the events
- Subject: Re: Problem in simulating the events
- From: "Gurmit Teotia" <email@hidden>
- Date: Thu, 22 Jun 2006 16:46:33 +0530
Thanks Ryan and Erics, it has solved my problem but I've now another issue.
I was planing not to generate the mouse down event on menu of my
application. For this I have assumed restricted area of width equal to half
of screen width and height equal to menu bar height. Earlier I'd assumed
that flash application would stop execution if I generate mouse down event
on menu but it's not so. Even if I generate the mouse down on empty space on
menu bar it stops responding. So now I've to assume the restricted area till
the status items. I can easily click on the status items so I do not want to
put whole menu bar under restricted area. Can anyone suggest how I can get
the area of menu bar which does not includes that of status items? I'd
appreciate if someone can also suggest some other approach.
With regards,
Gurmit
On 6/21/06, Ryan Britton <email@hidden> wrote:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSStatusBar_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSStatusBar/thickness
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.
>
> With regards,
> Gurmit
> _______________________________________________
> 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
_______________________________________________
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