NSOutlineview Datasource
NSOutlineview Datasource
- Subject: NSOutlineview Datasource
- From: Coleman Nitroy <email@hidden>
- Date: Fri, 4 Feb 2005 10:55:26 -0500
I know most of you probably have anything with the subject Outlineview
automatically filtered to the trash =) but for those who don't I have a
question:
Currently for my datasource I am using a basic generic node/tree. I
have a class, that contains an array of children of more of that class
and so on. So basically SomeClass->has an array of SomeClass's and so
on. This is great for somethings but can be quite cumbersome to work
with especially since SomeClass has to contain a dictionary of its
properties, and since I am working with keeping these objects in sync
with my OpenGL renderer, I would like to change this.
So to make my life easier I would like to use more specific objects.
For example: SomeClass->has an array of children of class type
SomeOtherClass, and on and on. Before I rip out a large amount of code
I was wondering is this possible to use in a NSOutlineview. Does
SomeOtherClass need to be a subclass of SomeClass? What caveats will I
run into?
Also a side question. When deleting items you need to have its parent
correct? Out of curiosity how does everyone maintain the parent side of
the child/parent relationship?
Many thanks in advance,
---
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