• 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: Array Controller - Making some items uneditable?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Array Controller - Making some items uneditable?


  • Subject: Re: Array Controller - Making some items uneditable?
  • From: Jim Correia <email@hidden>
  • Date: Tue, 13 Jun 2006 08:35:48 -0400

On Jun 13, 2006, at 7:45 AM, Matt Gough wrote:

I have a table view bound to an array controller. I would like to prevent some of the items in the table being edited (by double- clicking them). I could obviously prevent any changes being propagated using validate<key>:error: but I'd prefer it if the user wasn't lulled into thinking they can make changes.

I imagine I could override [NSTableColimn isEditable] and check the selection, but I was hoping for a purely KVC-based solution.

NSTableColumn has an "editable" binding.

Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Array Controller - Making some items uneditable?
      • From: Matt Gough <email@hidden>
References: 
 >Array Controller - Making some items uneditable? (From: Matt Gough <email@hidden>)

  • Prev by Date: Array Controller - Making some items uneditable?
  • Next by Date: Re: Icon button with pop-up menu in toolbar?
  • Previous by thread: Array Controller - Making some items uneditable?
  • Next by thread: Re: Array Controller - Making some items uneditable?
  • Index(es):
    • Date
    • Thread