• 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
Deleting 20000 files in applicationWillTerminate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deleting 20000 files in applicationWillTerminate


  • Subject: Deleting 20000 files in applicationWillTerminate
  • From: Devarshi Kulshreshtha <email@hidden>
  • Date: Fri, 15 Nov 2013 17:37:53 -0600

In my iPhone app, I am downloading files from server and storing them
locally (user's document directory). The path of each file downloaded is
subsequently updated in database.

If user tries to delete a file, first the file is deleted from local path
using removeItemAtPath: (NSFileManager), then corresponding record is
deleted from database.

Now I have one of the requirements according to which user can turn on a
UISwitch to delete all data on app exit.

Now my question is - suppose user downloaded 20000 files, say small images,
and user turned on the switch to delete all data on app exit. Is it good to
handle this task in applicationWillTerminate? What is the best way to
accomplish this scenario?

Please suggest.

--
Thanks,

Devarshi
_______________________________________________

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


  • Follow-Ups:
    • Re: Deleting 20000 files in applicationWillTerminate
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Identifying complete size of file when transfer is in progress
  • Next by Date: Re: Identifying complete size of file when transfer is in progress
  • Previous by thread: Re: Identifying complete size of file when transfer is in progress
  • Next by thread: Re: Deleting 20000 files in applicationWillTerminate
  • Index(es):
    • Date
    • Thread