Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Miglu

macrumors member
Original poster
Jan 22, 2010
74
0
I want to use NSOutlineview to show hierarchical data from a NSArray, but not from Core Data. I have not found a tutorial about it that does not use Core Data, but I guess that I should use NSTreeController and some object that implements NSOutlineViewDataSource. How to bind those three objects, and the array, together?
 
If you want to use bindings, you need to use the NSTreeController. I have heard bad things about implementing this strategy (although it may have improved since). It has been recommended to me to use the data-source delegate methods instead of bindings.
 
Alright, I have implemented the 4 required delegate methods in NSOutlineViewDataSource. How to use it with NSOutlineview? I do not know, as I do not have much experience with views.
 
Alright, I have implemented the 4 required delegate methods in NSOutlineViewDataSource. How to use it with NSOutlineview? I do not know, as I do not have much experience with views.
Start by connecting the dataSource and delegate outlets of the NSOutlineView (in Interface Builder) to the object that is implementing those methods. Then fix the bugs as you hit them. :D
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.