Re: How to "capture" the mouse
Re: How to "capture" the mouse
- Subject: Re: How to "capture" the mouse
- From: j o a r <email@hidden>
- Date: Fri, 1 Feb 2008 11:32:19 -0800
On Feb 1, 2008, at 11:09 AM, Vance wrote:
Now, when the user clicks anywhere outside the status bar, the
application needs to Hide the window.
On what even do I hide the window? mouseDown or any other mouse
related NSResponder event does not get called when it occurs outside
of the view client area.
Why do you need to open a window, why not just use a regular menu with
a custom view? One obvious answer to that question might be that you
need to support versions of Mac OS X prior to Leopard - Is that the
case?
On 10.4 and later you can probably use the CGEventTap API to find the
information that you're looking for.
j o a r
_______________________________________________
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