NSTreeController examples?
NSTreeController examples?
- Subject: NSTreeController examples?
- From: "Tristan O'Tierney" <email@hidden>
- Date: Tue, 12 Jul 2005 09:28:29 -0400
the documentation and examples on this seem to be rather sparse. and what i
CAN find, example wise, uses CoreData.
I was told by some people in irc://irc.freenode.org/#macdev that what i
wanted to do wasn't the easiest because NSTreeController likes recursive
single-node structures
essentially i'm looking to make a two level tree:
> Group 1
| Child 1
| Child 2
| Child 3
> Group 2
| Child 1
> Group 3
| Child 1
| Child 2
... etc
such that the groups are single level (no groups within groups, and no
children at the root node) originally i had a structure like:
@interface Group {
NSMutableArray *children;
NSString *name;
}
@interface TreeData {
NSMutableArray *groups;
}
@interface Child {
NSString *name;
}
but I just can't seem to get that to translate well with an NSTreeController
using bindings. Am i just going about this data structure in the wrong way?
should i give in and use coredata?
--
Tristan O'Tierney
- Email: tristan [TA] opendarwin <DOT> org
- Homepage: http://opendarwin.org/~tristan
_______________________________________________
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