Re: tracking mouse state outside of a view
Re: tracking mouse state outside of a view
- Subject: Re: tracking mouse state outside of a view
- From: Uli Kusterer <email@hidden>
- Date: Sat, 21 Oct 2006 23:34:55 +0200
Am 17.10.2006 um 22:21 schrieb Rob Ross:
Right now, the only way I can detect this end-of-menu tracking is
when I click back in my custom view, but obviously this isn't going
to help me.
So how do I find out if the mouse gets clicked elsewhere when I'm
in the "drawing highlight" state, so I can go back to "drawing
unhighlighted" state.
How are you displaying your menu? Usually, a menu should close
automatically (it will even send you a
NSMenuDidEndTrackingNotification once it's finished tracking, is that
what you're looking for?). If what you're doing is not a real menu,
you could probably create a transparent borderless overlay window
that will catch the click so you can hide your fake menu.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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