Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Uli Kusterer <email@hidden>
- Date: Fri, 16 Mar 2007 22:54:58 +0100
Am 16.03.2007 um 22:13 schrieb Orr Philip:
Could someone like to explain please how NSOutlineView works, I've
looked up the internet and ran through the examples that Apple give
you, but for some reason I still don't quite understand how it
works out what value is needed for the cell.
I do understand the NSTableView okay and many columns say that
NSOutlineView is the same, sorry I don't think so.
Basically I'm looking to have a rootless column with any number of
children spawning from my options.
Might help to see NSOutlineView as a collection of small
NSTableViews. The "root" is NIL. The outline view will ask you how
many sub-items another item should have, and then just like with an
NSTableView, you can return an item for each column.
So, if you want a "rootless" view, just return a number bigger than
1 when asked for the number of subitems of item NIL.
Anything else that isn't clear?
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden