I\'m downloading an SQLite db from the web into my iPad app. If I write it to disk setting atomically: YES I can\'t immediately use it because even though the f
atomically: YES
According to the link, the operation will either write completely or fail.
With that in mind, write atomically on another thread, and then do something like this!
while (![[FileManager defaultFileManager] fileExistsAtPath:yourEventualDBPath]) { [NSThread sleepForTimeInterval:.5]; }