• 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
NSArrayController in entity mode and permutations (CoreData question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController in entity mode and permutations (CoreData question)


  • Subject: NSArrayController in entity mode and permutations (CoreData question)
  • From: vincent habchi <email@hidden>
  • Date: Mon, 12 Apr 2010 17:15:14 +0200

Hi again!

I'd like to change the place of a NSManagedObject stored in a NSArrayController in entity mode (after a drag'n drop operation). I didn't find any suitable primitive, so I decided to go something like "removeAtSomeIndex" and then immediately after "insertAtSomeOtherIndex".

However, it does not work: it seems as soon as an object is removed from the array, core data is told to unlink it, so, at the end of the permutation, I end up with an array full of object that get removed in core data at a later point, and after a while I get faults with non-existent objects.

Is there any trick to solve this knot?

Thanks a lot,
Vincent_______________________________________________

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: NSArrayController in entity mode and permutations (CoreData question)
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Data managment
  • Next by Date: Re: Problem with reading an NSPipe->NSFileHandle to end
  • Previous by thread: Re: CIContext in 10.6
  • Next by thread: Re: NSArrayController in entity mode and permutations (CoreData question)
  • Index(es):
    • Date
    • Thread