Re: NSOutlineView Problem
Re: NSOutlineView Problem
- Subject: Re: NSOutlineView Problem
- From: Scott Ahten <email@hidden>
- Date: Thu, 10 Jun 2004 10:53:15 -0400
On Jun 10, 2004, at 1:29 AM, John Terranova wrote:
It might make sense (depending on your data) to create the data
lazily. The first time the outlineview asks you for it, you create it
and return it. But, you also store the object in your own data
structures, so that the next time the outlineview asks for the object,
you don't have to create it, you just get it from your data structure.
I was leaning in this direction, but hoped I could avoid creating
another layer between the outline view and the XMLTree. I'll also need
to provide a way to invalidate the entire structure or a particular
node in the structure if the underlying data changes.
Using a dictionary could be a problem since XML documents can have
multiple elements with same name. I'll probably end up creating my own
node class that contains a NSArray of child nodes and lazily build the
hierarchy as requested by the outline view.
Thanks everyone...
- Scott
- - - - -
:: email@hidden
::
http://www.pixelfreak.net
- - - - -
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.