NSOutlineView drag and drop: how to prevent parent being dropped on one of its children

2011-10-29 Thread Koen van der Drift
Hi, I'm setting up drag and drop for my NSOutlineView and I want to prevent parents being dropped on one of their children. The parent and children are all of the Group entity. I understand I need to do this in the outlineView:validatedrop method. I think I need to create an NSFetchRequest

Re: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children

2011-10-29 Thread Kyle Sluder
On Sat, Oct 29, 2011 at 1:18 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: I'm setting up drag and drop for my NSOutlineView and I want to prevent parents being dropped on one of their children. The parent and children are all of the Group entity. I understand I need to do this in

Re: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children

2011-10-29 Thread Koen van der Drift
Thanks Kyle, I'll try to apply that. In the meantime, I also found the AbstractView sample code which does something similar. I'll see which one fits my code better. - Koen. On Oct 29, 2011, at 5:34 PM, Kyle Sluder wrote: On Sat, Oct 29, 2011 at 1:18 PM, Koen van der Drift