Re: NSOutlineView Dazed and Confused for Drag and Drop
Re: NSOutlineView Dazed and Confused for Drag and Drop
- Subject: Re: NSOutlineView Dazed and Confused for Drag and Drop
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 15 Sep 2010 10:47:23 -0600
On Sep 15, 2010, at 10:35 AM, email@hidden 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 NSCoding support in your custom class items, then use NS(Keyed)Archiver to turn them into data you can place on the pasteboard.
> 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).
Did you register the view for the drag types using -registerForDraggedTypes:?
> 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?
That happens automatically as you drag the items close to an edge.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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