• 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
Catching edits to items in a table view using bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Catching edits to items in a table view using bindings


  • Subject: Catching edits to items in a table view using bindings
  • From: "Matthew M. Swann" <email@hidden>
  • Date: Fri, 3 Jun 2005 21:12:07 -0700

Hi all,

I have a table view that is bound to an array controller that is itself bound to a core data store. Certain table columns are editable in my view, and I'd like to be notified when these values change. The array controller handles updating the attribute values of my managed objects, but my managed objects are abstractions of physical, on-disk files -- and I'd like to update file metadata when a user changes a value in the table view.

I expected that I would be able to add myself as an observer to the array controller, but that doesn't seem to give me the information I want — it will tell me when items are added or deleted, but not when values change.

Implementing the table view data source's "tableViewSetObjectValueForLocation" method seems like it would get me what I want, but I'm curious whether there's a better way to get this data. I wouldn't be implementing a data source for my table view if it weren't for the need to handle drag and drop, hence my hesitation.

Any ideas? Is there a key path I can observe that will get me the attribute and new value for a change to a managed object in an array controller?

Thanks!

Matt

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Catching edits to items in a table view using bindings
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: [ANN] iChat Hangman (source included)
  • Next by Date: Re: ScreenSaverView/NSQuickDrawView/Opaque issue [solved]
  • Previous by thread: [ANN] iChat Hangman (source included)
  • Next by thread: Re: Catching edits to items in a table view using bindings
  • Index(es):
    • Date
    • Thread