• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: tracking mouse state outside of a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >tracking mouse state outside of a view (From: Rob Ross <email@hidden>)

  • Prev by Date: Text character under the mouse cursor in an NSTextView
  • Next by Date: Re: NSCell subclass with custom binding
  • Previous by thread: tracking mouse state outside of a view
  • Next by thread: How to capture Key event in a NSApp?
  • Index(es):
    • Date
    • Thread