Re: Trouble with NSButtonCell
Re: Trouble with NSButtonCell
- Subject: Re: Trouble with NSButtonCell
- From: Reinhard Segeler <email@hidden>
- Date: Thu, 3 Sep 2009 13:33:36 +0200
Don't know anything about the toolkit you're using, but I would use
setAction: for single click and setDoubleAction: for double click,...
Hope this helps.
Reinhard
Am 03.09.2009 um 05:41 schrieb Dave DeLong:
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
_______________________________________________
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