Re: Implementing KVO in a nested tree of objects
Re: Implementing KVO in a nested tree of objects
- Subject: Re: Implementing KVO in a nested tree of objects
- From: Guy English <email@hidden>
- Date: Tue, 18 Jan 2005 15:51:44 -0500
I'm not sure I understand you completely. If you want to know when any
given object in the tree changes why can't you just iterate over the
tree adding the observer to each node?
Or you could have each node listen for changes in its children and
propogate those up by changing on your your own instance variables.
Guy
On Tue, 18 Jan 2005 11:28:45 -0700, Daryl Thachuk <email@hidden> wrote:
> Hi All
>
> I have a model which contains a tree of nested objects and I wish to be
> notified when attributes on these objects change. As the view can
> operate on several nodes of the tree at a time I am trying to think of
> a way to use KVO for notifications. I have a few ideas on how to
> implement this but I am not happy with them so I'm wondering if anyone
> has an elegant solution for this problem.
>
> thanks
>
> -d
> ------
> Daryl Thachuk
> Montage Technologies Inc.
> http://www.montagetech.com
>
> _______________________________________________
> 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
>
_______________________________________________
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