nsarraycontroller and object updating
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.