Visually disabling some checkboxes in a NSTableView
Visually disabling some checkboxes in a NSTableView
- Subject: Visually disabling some checkboxes in a NSTableView
- From: Tito Ciuro <email@hidden>
- Date: Sat, 21 May 2011 09:19:12 -0700
Hello,
I have a table view which contains a column that displays checkboxes. I would like to disable and gray out some of the checkboxes, so I guess there are two possible ways (perhaps there's another way?):
1) disable the control (i.e. gray out) so that the user cannot toggle it (in one single method)
2) ignore tracking for the affected rows and disable the cell/control (in two or more methods)
I've tried option #2. I've implemented - (BOOL)tableView:shouldTrackCell:forTableColumn:row: and the click gets properly ignored. However, I'd also like to indicate to the user that the checkbox cannot be toggled, and this is where I'm stuck. How would some of these checkboxes be grayed out?
Thanks in advance,
-- Tito
_______________________________________________
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