• 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
Re: Why no -[NSManagedObjectContext deleteObjects:] ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why no -[NSManagedObjectContext deleteObjects:] ?


  • Subject: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • From: Conor <email@hidden>
  • Date: Sun, 02 Sep 2007 13:14:38 +0200

> Deleting an object from a managed object context is relatively cheap
> as it does not impact the persistent store.

But not when it comes to bindings. Deleting one object will send
notifications around. I have to unbind an NSArrayController and then bind it
back up after the enumeration in order to perform a delete of several
objects. NSManagedObject should definitely have a deleteObjects: to avoid
that issue. All that said I would recommend you file an enhancement request
with Apple's bug tracker.

Conor


_______________________________________________

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: Why no -[NSManagedObjectContext deleteObjects:] ?
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Temporary files best practice?
  • Next by Date: Re: Are there any generic controller classes?
  • Previous by thread: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Next by thread: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Index(es):
    • Date
    • Thread