Re: NSActionCell, mouse tracking and NSTableView
Re: NSActionCell, mouse tracking and NSTableView
- Subject: Re: NSActionCell, mouse tracking and NSTableView
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 8 Dec 2004 13:07:48 -0800
On Dec 8, 2004, at 10:44 AM, Mark Alldritt wrote:
I'm trying to create a NSActionCell subclass which implements roll-over
effects for use within NSTableView and NSOutlineView.
Mark, Keep in mind that a cell is not a view: Cells don't get events,
unless something else passes an event along to them. Typically, a
control will pass events to its cell. If you want your cell to get
-mouseEntered: and -mouseExited: events, some view will have to set a
tracking rect, and then pass the events to your cell when the view gets
them.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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