Theocacao
Leopard
Design Element
Comment on "NSTreeController and Drag and Drop"
by Paul Collins — Nov 23
On Leopard (as observed on 10.5.1), use of the private method -observedObject still works but logs a helpful "is deprecated" warning that points to the new public API: [NSTreeNode -representedObject].

I'm able to get my objects in -outlineView:writeItems:toPasteboard: using -representedObject the same as described for -observedObject in Scott's original post.

BTW, my results seem to differ with Sam's, in that -observedObject is still usable as described by Scott as of 10.4.11.

I'm not sure if the dummy NSOutlineViewDataSource methods are still needed in 10.5 (I'm leaving them in as I'm building for minimum 10.4 anyway).
Back to "NSTreeController and Drag and Drop"
Design Element

Copyright © Scott Stevenson 2004-2015