Images saved - items not saved


if the application crashes items are not saved but images are -> images exist but i do not have keys for them — is it possible to destroy them in case of a crash (at the next application start)?


Sure, you could loop through all of the images by using NSFileManager’s enumeratorAtPath: method and confirm that every image has a BNRItem. However, you’d probably want to be more robust than that, which would require a solution that automatically saves the BNRItems when they get the image. The Core Data chapter will do this