Trouble with NSButtonCell
Trouble with NSButtonCell
- Subject: Trouble with NSButtonCell
- From: Dave DeLong <email@hidden>
- Date: Wed, 02 Sep 2009 21:41:02 -0600
Hi everyone,
I'm using Brandon's excellent BWToolkit in a project of mine right
now. I'm specifically using the BWTransparentTableView and
BWTransparentCheckBoxCell classes. I'd like to customize the
CheckBoxCell to fulfill the following requirements:
1. Only invoke the target's action when the user single-clicks the
actual checkbox.
2. Invoke the target's action when the user double-clicks anywhere in
the cell.
I've tried subclassing BWTransparentCheckBoxCell and implementing
stopTracking:at:inView:mouseIsUp: to invoke the target's action
appropriately, but this method is never getting executed. I've tried
implementing the tableView's delegate method
(tableView:shouldTrackCell:...), to no effect. I've toyed with the
possibility of implementing a custom
trackMouse:inRect:ofView:untilMouseUp:, but that seems hopelessly
complex.
Any ideas on why my tracking method isn't getting called, or a better
approach I could be taking to this?
Thanks!
Dave DeLong
_______________________________________________
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