Re: Detecting mouseover in an NSActionCell subclass
Re: Detecting mouseover in an NSActionCell subclass
- Subject: Re: Detecting mouseover in an NSActionCell subclass
- From: Randall Meadows <email@hidden>
- Date: Mon, 12 Jan 2009 13:22:29 -0700
On Jan 12, 2009, at 12:56 PM, Jean-Nicolas Jolivet wrote:
I've got it all working at this point, the 2 buttons on the right
are just NSImages and I'm using startTracking, continueTracking and
stopTracking, with my buttons Rect, to detect if they were clicked
on...
However, I was wondering if it's possible to track when the buttons
are moused over so that I can display an alternative image? I've
seen countless apps doing it... the best example I could give is
Safari's Download window, where you have a little Magnifying glass
icon on the right (The "Reveal in Finder" button)... this is
exactly what I'm trying to achieve...
Check out the Photosearch sample code <http://developer.apple.com/samplecode/PhotoSearch/index.html
>; it helped me figure this out when I needed to do mouse tracking in
a table cell.
_______________________________________________
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