NSOutlineView woos
NSOutlineView woos
- Subject: NSOutlineView woos
- From: Coleman Nitroy <email@hidden>
- Date: Fri, 17 Dec 2004 10:29:59 -0500
Thanks everyone for the great responces to my last problem of storing a
complex data structure, but I have run into another problem. I have a
bunch of data being tossed into a node structure. Each node basically
consists of a string containing an identifier name, for easy finding,
and a dictionary containing key value pairs of properties for each
node. This works great for the data I am working with. This may have
more to do with the document class and bindings then it does with the
data structure. Due to my lack of verbosity I will semi diagram what I
have.
MapDocument class (subclass of NSDocument, it contains all the
loadDataRepresentation: and stuff)
MapDataSource class (contains a rootNode and an IBOutlet to an
NSOutlineView)
MapNode class (contains simple set and get functions for setting the
node properties and adding children)
Treeview class (loads the nib for this particular panel)
My question is: How do I tie it all together?
Map document has a MapDataSource object. That object is passed the data
from loadDataRepresentation ... and it creates a node tree. I am trying
to create a document based app that if this file window is selected the
panels all then update to represent the new selection. I am probably
going about this all wrong. But when I tie the NSOutlineView from
MapDataSource to the item in the nib and build and run I see nothing
when I load a file. I am 100% sure that the file is being loaded and
the tree is being populated because after its all done I have a debug
function that just climbs the tree and spits out the properties for
every node.
Thanks in advance (you guys are great)
---
Coleman Nitroy
email@hidden
nitroy.com/cole
_______________________________________________
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