Re: NSOutlineView Travails
Re: NSOutlineView Travails
- Subject: Re: NSOutlineView Travails
- From: Gordon Apple <email@hidden>
- Date: Wed, 17 Apr 2013 16:13:02 -0500
- Thread-topic: NSOutlineView Travails
We had assumed that outlineView:objectValueForTableColumn:item was not
called if the table was bound to a NSTreeController. Wrong assumption. If
we returned the correct value, or just eliminated this method, it mostly
works correctly. However, there a few anomalies. The outline text indents
properly, but the disclosure indicator occasionally (and randomly) appears
anywhere it wants within the column/row. Also, scrolling by clicking the
bar lower sometimes results in flipping down to the right level, then
immediately flipping back up to the view top.
On 4/17/13 2:00 PM, "email@hidden"
<email@hidden> wrote:
> 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