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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to