Re: Need Help Creating an OutlineView for TabView selection
Re: Need Help Creating an OutlineView for TabView selection
- Subject: Re: Need Help Creating an OutlineView for TabView selection
- From: Jeff LaMarche <email@hidden>
- Date: Wed, 31 Aug 2005 10:13:42 -0400
I would like to use an NSOutlineView to drive my preferences for
selecting the tabs. I am having some trouble creating my
datasource for this. I have attached a code attempt that used
CFXMLTree, that worked except for I ended up with a root node that
only had a subnode, which isn't what I really wanted. I want it
to look more like
NSOutlineView asks the DataSource for the number of items and the
actual items by sending nil. In your datasource, you should create an
array of root items, which you return when item is nil.
I've never actually done this, though, so can't give you much more
information than that - I just came across this information on the
CocoaDev wiki. There's no mechanism in NSOutlineView tell it not to
display the root node AFAIK. A better idea might be a subclass of
NSOutlineView that doesn't display the root node, but rather uses all
the level 1 nodes as "root".?
_______________________________________________
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