Re: Make checkbox in table view uneditable
Re: Make checkbox in table view uneditable
- Subject: Re: Make checkbox in table view uneditable
- From: Keary Suska <email@hidden>
- Date: Tue, 14 Sep 2010 20:29:47 -0600
On Sep 14, 2010, at 5:59 PM, Shane Stanley wrote:
> I have a table view using Cocoa bindings, and all columns have editable
> turned off in the Attributes panel. However one column, which contains a
> checkbox cell, steadfastly remains editable.
>
> I've also tried binding its editable property to a boolean property set to
> NO, but that made no difference.
>
> Is there some other way I can make a column of checkboxes uneditable, or is
> this a bug?
Checkboxes aren't edit controls, they are buttons, and to my knowledge don't even have an "editable" property (even though the table column has such a binding). To prevent changing a button state (without significant subclassing) you must disable it. In this case, of course, we are talking about NSCells.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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