• 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
NSOutlineView + selectionIndexPaths binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView + selectionIndexPaths binding


  • Subject: NSOutlineView + selectionIndexPaths binding
  • From: Andrew Shamel <email@hidden>
  • Date: Wed, 20 Jan 2010 20:17:35 -0800

Hi All,

I've dug around in the archives and found several threads addressing this question, but the solutions don't seem to work.

NB: all binding was done in Interface Builder

I have an NSOutlineView with its only column bound at treeController.arrangedObjects.name to an NSTreeController that manages a Core Data entity called Collection with the property "name."

The NSOutlineView's dataSource IBOutlet is connected to a custom class CollectionViewController for the purposes of handling drag and drop.

What I would like to do is bind the NSOutlineView's selectionIndexPaths binding to the NSTreeController's selectionIndexPaths key.  When I do this, however, I get back this error:

Illegal NSOutlineView data source (<CollectionViewController: 0x1001722d0>).  Must implement outlineView:numberOfChildrenOfItem:, outlineView:isItemExpandable:, outlineView:child:ofItem: and outlineView:objectValueForTableColumn:byItem:

and there is nothing in the NSOutlineView (or any other bound views for that matter).

I tried implementing "dummy" versions of those NSOutlineViewDataSource methods (that return negative or nil values), as I have seen recommended in the archives, but this also results in a host of empty views.

Have there been any developments on this front?  Is there any way to bind the selectionIndexPaths binding while still using bindings for the NSOutlineView's data?

Any and all feedback is most appreciated!

Pax,

andy_______________________________________________

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

  • Follow-Ups:
    • Re: NSOutlineView + selectionIndexPaths binding
      • From: Quincey Morris <email@hidden>
    • Re: NSOutlineView + selectionIndexPaths binding
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Best practices for using standard window widgets in a custom window
  • Next by Date: Re: Best practices for using standard window widgets in a custom window
  • Previous by thread: Re: Best practices for using standard window widgets in a custom window
  • Next by thread: Re: NSOutlineView + selectionIndexPaths binding
  • Index(es):
    • Date
    • Thread