On May 7, 2009, at 12:25 PM, Seth Willits wrote:

Graham's idea notifies the parent of any change in the child without having to use an "isModified" key, which is a bit cleaner. I think an even better solution would be to merge Mike Ash's dedicated KV observer object with the general idea of Graham's. I'm going to have to fiddle a bit.

Here's a (incomplete) example of what I was thinking:
http://www.sethwillits.com/temp/PCKVOTest.zip

I like it because:

1) Simple interface for the parent to use
2) Simple method for the child to implement
3) Parent has a unique selector being called
4) No hacky setValue:forKey: overrides required

It feels like a good direction to head in.

--
Seth Willits



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to