startTrackingAt not working as expected for NSTableView cells
startTrackingAt not working as expected for NSTableView cells
- Subject: startTrackingAt not working as expected for NSTableView cells
- From: Dave Camp <email@hidden>
- Date: Thu, 18 Sep 2003 14:31:38 -0700
I've got an NSTableView with a single column and a custom subclass of
NSCell installed. The cell class contains 4 sub-cells, and it draws
fine.
I want to track mouse clicks on one of the sub-cells (an NSCell
displaying an image), such that on mouse down I display a pressed image
and revert to the normal image on mouse up. I'm using a standard NSCell
for this as there does not appear to be a way to use NSButtonCells
without fancy Aqua borders and such.
So, here is the problem. All of the documentation I've read indicates
that my cell class should get a startTrackingAt:inView: call on mouse
down. I only seem to get the call on the subsequent mouse up. I've also
implemented trackMouse:inRect:ofView:untilMouseUp:,
continueTracking:inView:, and stopTracking:inView: and all of those are
only called on mouse up as well.
What am I doing wrong? It looks like the table view or table column is
not letting the cells track mouse clicks.
Thanks,
Dave
---
It's not denial. I'm just very particular about the reality I choose to
accept. -Calvin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.