Re: startTrackingAt not working as expected for NSTableView cells [never mind]
Re: startTrackingAt not working as expected for NSTableView cells [never mind]
- Subject: Re: startTrackingAt not working as expected for NSTableView cells [never mind]
- From: Dave Camp <email@hidden>
- Date: Thu, 18 Sep 2003 17:55:50 -0700
Figures. A few minutes after posting the question it mysteriously
starts working... I hate that.
Sorry for the waste of bandwidth.
Dave
On Thursday, September 18, 2003, at 02:31 PM, Dave Camp wrote:
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.
---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
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.