On Sep 27, 2014, at 6:54 AM, Charles Jenkins <cejw...@gmail.com> wrote:
> 
> I have a question that may be truly obvious and stupid, but here goes anyway. 
>  
> 
> In my application, I’ll display an outline view, and I want the user to be 
> able to drag nodes around to rearrange the tree however he likes.
> 
> The table objects’ drag-related functions I’ve found seem to rely on the 
> pasteboard, as if we were dragging information in from the Finder or another 
> application.
> 
> Are those the functions I should be looking at for rearranging the outline, 
> or am I barking up the wrong tree?  

The pasteboard is indeed the way to go. After all, for any arbitrary outline 
view, the user could drag from your that outline view to another app.

If in your case it only makes sense to drop within the outline view, you can 
use a custom pasteboard type that contains no data.

(This is actually how Safari tabs work.)

--Kyle Sluder
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to