• 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: 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
References: 
 >Implementing KVO in a nested tree of objects (From: Daryl Thachuk <email@hidden>)
 >Re: Implementing KVO in a nested tree of objects (From: Guy English <email@hidden>)

  • Prev by Date: Re: Implementing KVO in a nested tree of objects
  • Next by Date: Using drawRow? Drawing over cells...
  • Previous by thread: Re: Implementing KVO in a nested tree of objects
  • Next by thread: Assigning a custom formatter to a tablecolum in IB
  • Index(es):
    • Date
    • Thread