Re: Why no -[NSManagedObjectContext deleteObjects:] ?
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