• 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
nsarraycontroller and object updating
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nsarraycontroller and object updating


  • Subject: nsarraycontroller and object updating
  • From: Daryn <email@hidden>
  • Date: Fri, 19 Dec 2003 14:03:13 -0600

Is there an easy way to force NSArrayController to always update the
entire object it manages in the array, rather than just a subkey of the
object?

For example, I have a class with indexed accessors for contentArray to
which which I bind an array controller. When contentArray.<N>.name is
updated in the UI, I don't want contentArray.<N>.name to be directly
updated. I would like contentArray.<N>=object behavior. Essentially,
I would like replaceObjectInContentArrayAtIndex: to be invoked.

Do need to override setValue:forKeyPath: in my class with the indexed
accessors, or is there a better way?

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: nsarraycontroller and object updating
      • From: Daryn <email@hidden>
  • Prev by Date: Re: Desktop Pictures engine suggestion?
  • Next by Date: Re: Desktop Pictures engine suggestion?
  • Previous by thread: NSComboBoxCell
  • Next by thread: Re: nsarraycontroller and object updating
  • Index(es):
    • Date
    • Thread