Re: NSOutlineView Drag and Drop
Re: NSOutlineView Drag and Drop
- Subject: Re: NSOutlineView Drag and Drop
- From: Chris Williams <email@hidden>
- Date: Wed, 15 Sep 2010 00:29:50 -0400
- Acceptlanguage: en-US
- Thread-topic: NSOutlineView Drag and Drop
Or check the sample code. There's a great sample that shows it all.
________________________________
From: Seth Willits <email@hidden>
Date: Tue, 14 Sep 2010 23:20:24 -0400
To: cocoa-dev list <email@hidden>
Subject: Re: NSOutlineView Drag and Drop
On Sep 14, 2010, at 7:36 PM, email@hidden wrote:
> Other than
>
> - (NSDragOperation)outlineView:(NSOutlineView *)outlineView validateDrop:(id <NSDraggingInfo>)info proposedItem:(id)item proposedChildIndex:(int)index
>
> and
>
> - (BOOL)outlineView:(NSOutlineView *)outlineView acceptDrop:(id <NSDraggingInfo>)info item:(id)item childIndex:(int)index
>
> what do i need to implement so I can drag item within an NSOutline View?
That's the drop methods. You also need to implement the drag methods. There's another protocol for that. Also, you need to use the NSView method to register for dragged types.
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden