NSOutlineView Travails
NSOutlineView Travails
- Subject: NSOutlineView Travails
- From: Gordon Apple <email@hidden>
- Date: Wed, 17 Apr 2013 12:50:45 -0500
- Thread-topic: NSOutlineView Travails
We are converting tables and outlines to view-based. So far, so good, on
tables. But NSOutlineView has been a pain. First of all, there is no
documentation on this, zero, zip, nada, zilch, in the NSOutlineView
Reference. You have to rely on sample code and NSOutlineView.h.
Our outline view has a column/cell identifier ³LineNumber², one for
³CheckBox², one for ³Outline². Previously, the latter two were bound to our
NSTreeController. Converting to views (yes, using
outlineView:viewForTableColumn:item:), we could not even get the nib to
load. ObjectValue always came up nil. We tried binding the tableView to
the tree controller still nil. Ok, after examining sample code, we
decided that just maybe there was something magic about the column/cell
identifier ³MainCell², so we changed our third column/cell identifier and
replaced @²Outline² with @²MainCell² in our code. Amazing now the nib
loads. However, still no values. Even worse, the turn-down dingy appears
in the first column, not the third where we want it. It does turn down the
right number of times and depths to match our outline, but is in the wrong
place and no values.
So how do I get the outline back into the third column and get my
objectValues to work?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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