• 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: Scott Thompson <email@hidden>
  • Date: Sat, 1 Sep 2007 10:28:30 -0500


On Sep 1, 2007, at 9:20 AM, Jerry Krinock wrote:

NSManagedObjectContext implements a deleteObject: method which deletes a single object. What if I want to delete an array or set of objects? Since CoreData is so High Level and Efficient, I would expect there to be an optimized deleteObjects: method.

It just seems weird that I should have to enumerate through and deleteObject: for each. I'm a little worried that maybe I'm thinking inside the wrong box or something.

You could add a "deleteYourself:" method to all the objects the use NSArray's


- (void)makeObjectsPerformSelector:(SEL)aSelector;

If it would make you feel better.

Scott

_______________________________________________

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


References: 
 >Why no -[NSManagedObjectContext deleteObjects:] ? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: file scan results in EX_BAD_ACCESS
  • Next by Date: Re: file scan results in EX_BAD_ACCESS
  • Previous by thread: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Next by thread: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Index(es):
    • Date
    • Thread