views:

26

answers:

1

I am working on an NSOutlineView that I populate by bindings to an NSTreeController. The NSTreeController contains objects of my own type. Everything is working as expected (getting the correct number of rows and disclosure indicators in the right places) expect that the titles for each row are coming up blank. I have overridden

-(NSString*)description

as the documentation suggest, but still no luck. Any help? Here are my bindings alt text

alt text

alt text

A: 

The answer turned out to be that I was binding to the NSOutlineView instead of to the column. The apple documentation says


"If you bind the content explicitly rather than binding a column of the NSOutlineView to the controller, you must also explicitly bind the selectionIndexPaths and sortDescriptors to the controller."


All I had to do to get it working was move the above binding settings to the table column, instead of the NSOutlineView.

Joe Cannatti