Hey guys,

I have a KVO question. First, the setup:

Foo
   NSMutableArray *bars;

Bar
   NSString *name;
   int number;

AppDelegate
   NSMutableArray *foos;

So the AppDelegate will contain an array of Foo object and each Foo object will have an array of Bar objects. I want to be able to observe the bars from the AppDelegate to see when new bars are added or when a property changes in each bar object. I know I can use addObserver:forKeyPath:options:context: and add it to each key I want to observe, but is there a better way to do this? Maybe some KVO magic way to watch a whole tree of objects and their properties?

Thanks for any help,

:// Jake


_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to