• 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
Programatically edit table view column vs. editable binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programatically edit table view column vs. editable binding


  • Subject: Programatically edit table view column vs. editable binding
  • From: Jim Correia <email@hidden>
  • Date: Thu, 16 Jun 2005 17:46:04 -0400

I have a table view in which the name of some of the objects are editable, some are not. Each responds to canEdit and returns the appropriate BOOL.

If I bind the editable attribute of the column to arrangedObjects.canEdit double clicking to start an edit works, but all programatic edits fail because all objects, not just the one in the target row, are consulted.

If I change the binding to selection.canEdit double click edits and programatic edits work correctly.

I originally did arrangedObjects.canEdit because for the value we use arrangedObjects.name. Were my bindings set up incorrectly? Or is this a bug I should report.

Example at

http://homepage.mac.com/jimcorreia/tmp/EditableBindingTest.zip

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


  • Prev by Date: Re: Modal dialog alternatives?
  • Next by Date: Re: Wrong type of button in IB? (solved + followup)
  • Previous by thread: Re: Programatically Set Data Cell Alignment
  • Next by thread: Generate attributes from model
  • Index(es):
    • Date
    • Thread