• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Implementing KVO in a nested tree of objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Implementing KVO in a nested tree of objects
      • From: Daryl Thachuk <email@hidden>
References: 
 >Implementing KVO in a nested tree of objects (From: Daryl Thachuk <email@hidden>)

  • Prev by Date: Window Menu
  • Next by Date: Re: Implementing KVO in a nested tree of objects
  • Previous by thread: Implementing KVO in a nested tree of objects
  • Next by thread: Re: Implementing KVO in a nested tree of objects
  • Index(es):
    • Date
    • Thread