Re: CoreData deleteAll of kind
Re: CoreData deleteAll of kind
- Subject: Re: CoreData deleteAll of kind
- From: "Sean McBride" <email@hidden>
- Date: Mon, 6 Jul 2009 14:42:48 -0400
- Organization: Rogue Research Inc.
On 7/6/09 11:32 AM, Greg Guerin said:
>> I was wondering the same thing the other day. After searching the
>> docs
>> and archives, I concluded the only way is to call deleteObject: in a
>> loop. I was surprised there's no method that takes an array/set and
>> deletes them all.
>
>Delete-all-of-a-kind sounds like something one could express in a to-
>many relationship with cascading delete.
Yup. That could work for the OP. In my case, I do a complex fetch and
want to delete all those objects. Not that writing a loop is hard or
too ugly, but it seems to me that CoreData might be able to do something
smarter if given a set of things to delete vs many separate deletes. No
biggie though.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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