• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Make checkbox in table view uneditable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make checkbox in table view uneditable


  • Subject: Re: Make checkbox in table view uneditable
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 15 Sep 2010 12:01:26 +0200

On Wed, Sep 15, 2010 at 4:29 AM, Keary Suska <email@hidden> wrote:
>
> 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.

IIRC, it does not require significant subclassing. Maybe 1 or 2 short methods.

Anyway, this is indeed only interesting in very uncommon cases as a
user will usually expect a checkbox to be "clickable" if it's enabled.
_______________________________________________

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

References: 
 >Make checkbox in table view uneditable (From: Shane Stanley <email@hidden>)
 >Re: Make checkbox in table view uneditable (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Make checkbox in table view uneditable
  • Next by Date: Round slider size
  • Previous by thread: Re: Make checkbox in table view uneditable
  • Next by thread: Re: force garbage collection? (NSAppleScript call from Cocoa app)
  • Index(es):
    • Date
    • Thread