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 {
First question.
items is an array of pointers to my outline view items ... how do I
put them on the pboard?
Next question.
My validate and accept drop methods are not called. Is this because
there is no data on the pboad (see above question as I haven't put the
items on the pboard).
Last question.
The outline view will not auto scroll ... I am not seeing any property
to specify this. How do I make the outline view auto scroll when
dragging around?
-koko
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]