Word up to Nick and Dave ...
All my issues were because in writeItems:toPasteboard I wasn't doing
anything ... I was just trying to stub in code to get the process.
Ergo, upon doing
[pboard declareTypes:[NSArray arrayWithObject:@"HTREEITEM"]
owner:self];
[pboard setData:[NSData d
I wrote a simple project to show basic drag-and-drop in an NSOutlineView,
available here:
http://davedelong.com/downloads
HTH,
Dave
On Sep 15, 2010, at 10:35 AM, k...@highrolls.net wrote:
> I do this in awakeFromNib (self is subclass of NSOutlineView);
>
> [self registerForDraggedTypes:[NSAr
On Sep 15, 2010, at 10:35 AM, k...@highrolls.net wrote:
> items is an array of pointers to my outline view items ... how do I put them
> on the pboard?
If they're property list items, you can put them directly onto the pasteboard.
If they're not, then you should archive them. Implement NSCodin
I do this in awakeFromNib (self is subclass of NSOutlineView);
[self registerForDraggedTypes:[NSArray
arrayWithObjects:NSDragPboard,nil]];
I implement in the data source:
- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray
*)items toPasteboard:(NSPasteboard *)pboard {
Fi