NSOutlineView + NSTreeController + Drag & Drop
NSOutlineView + NSTreeController + Drag & Drop
- Subject: NSOutlineView + NSTreeController + Drag & Drop
- From: Frank Illenberger <email@hidden>
- Date: Tue, 14 Jun 2005 14:55:48 +0200
Hi,
I am using Cocoa bindings on a NSOutlineView using a NSTreeController
which works alright. Now I want to add a data source to support drag
& drop on that outline view.
Sadly, this does not work and I get the following exception:
*** Illegal NSOutlineView data source (<METreeController: 0x3a0620>
[entity: Activity]). Must implement
outlineView:numberOfChildrenOfItem:, outlineView:isItemExpandable:,
outlineView:child:ofItem: and
outlineView:objectValueForTableColumn:byItem:
It seems as NSOutlineView does not know about the tree controller and
expects a classical data source.
When I use the same setup with a NSTableView and an
NSArrayController, I am able to supply a data source that only
delivers delegate methods for drag & drop.
Has anybody solved this problem yet or is this a bug in Cocoa?
Cheers
Frank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden