• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOutlineView drag and drop: how to prevent parent being dropped on one of its children
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children
  • From: Koen van der Drift <email@hidden>
  • Date: Sat, 29 Oct 2011 16:18:42 -0400

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 with the NSPredictate to get all the children of the parent, but I don't know what the predicate should be.

It should be recursively, so it should also get the children of children, if any.

Any suggestions?

Thanks,

- Koen._______________________________________________

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

  • Follow-Ups:
    • Re: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: STL algorithms and NSEnumerator/NSFastEnumeration
  • Next by Date: NSMetadataQuery - Just a warning.
  • Previous by thread: Re: STL algorithms and NSEnumerator/NSFastEnumeration
  • Next by thread: Re: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children
  • Index(es):
    • Date
    • Thread