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:[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 (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/davedelong%40me.com > > This email sent to davedel...@me.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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