• 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: CoreData deleteAll of kind
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: CoreData deleteAll of kind (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: NSApplication and UIApplication
  • Next by Date: Re: NSApplication and UIApplication
  • Previous by thread: Re: CoreData deleteAll of kind
  • Next by thread: Re: CoreData deleteAll of kind
  • Index(es):
    • Date
    • Thread