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: Daryl Thachuk <email@hidden>
- Date: Tue, 18 Jan 2005 14:31:40 -0700
Yes, those are the two methods I've thought of. Just wondering if
anyone had a KVO coding gem which implements a similar thing but with
less code.
-d
------
Daryl Thachuk
Montage Technologies Inc.
http://www.montagetech.com
On 18-Jan-05, at 1:51 PM, Guy English wrote:
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:
email@hidden
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