• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView Travails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSOutlineView Travails
  • Next by Date: Core Data: IN with ordered set of keys?
  • Previous by thread: Re: NSOutlineView Travails
  • Next by thread: File by index?
  • Index(es):
    • Date
    • Thread