Re: CoreData deleteAll of kind

2009-07-08 Thread Ben Trumbull
On 6 Jul 2009, at 23:37, Devraj Mukherjee wrote: Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. Seeming and being aren't the same. If you encounter performance issues with Core Data, please capture a Shark or Instruments trace and

Re: CoreData deleteAll of kind

2009-07-07 Thread Sean McBride
On 7/7/09 1:19 AM, Mike Abdullah said: Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. Why should that matter? File a request anyway, it will make the existing request ore prominent. Not that I disagree with the file a request anyway

Re: CoreData deleteAll of kind

2009-07-07 Thread Adam Swift
On Jul 7, 2009, at 9:17 AM, Sean McBride wrote: On 7/7/09 1:19 AM, Mike Abdullah said: Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. Why should that matter? File a request anyway, it will make the existing request ore prominent.

CoreData deleteAll of kind

2009-07-06 Thread Devraj Mukherjee
Hi all, I need my application to be able to delete all objects of a core data managed entity, at the moment the only way I can see how to do that is to fetch all objects of the entity kind and delete them one at a time looping through the collection. I have a suspicious feeling that there has to

Re: CoreData deleteAll of kind

2009-07-06 Thread Sean McBride
On 7/6/09 7:49 PM, Devraj Mukherjee said: I need my application to be able to delete all objects of a core data managed entity, at the moment the only way I can see how to do that is to fetch all objects of the entity kind and delete them one at a time looping through the collection. I have a

Re: CoreData deleteAll of kind

2009-07-06 Thread Greg Guerin
Sean McBride wrote: 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

Re: CoreData deleteAll of kind

2009-07-06 Thread Sean McBride
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

Re: CoreData deleteAll of kind

2009-07-06 Thread Chris Hanson
On Jul 6, 2009, at 2:49 AM, Devraj Mukherjee dev...@gmail.com wrote: I have a suspicious feeling that there has to be a deleteAll message that helps clear entities of a certain kind. There is no delete all instances of this entity method in Core Data. The only way to do so is to fetch all

Re: CoreData deleteAll of kind

2009-07-06 Thread Devraj Mukherjee
Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. On Tue, Jul 7, 2009 at 6:51 AM, Chris Hansonc...@me.com wrote: On Jul 6, 2009, at 2:49 AM, Devraj Mukherjee dev...@gmail.com wrote: I have a suspicious feeling that there has to be a

Re: CoreData deleteAll of kind

2009-07-06 Thread Mike Abdullah
On 6 Jul 2009, at 23:37, Devraj Mukherjee wrote: Thanks all for your feedback. Seems quite inefficient. Wonder if this is filed as a suggestion to Apple. Why should that matter? File a request anyway, it will make the existing request ore prominent. There are two reasons to have a