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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com