I need to save an image picked by an image picker on disk and than associate it to a managed object.
I want to store the image path in the managed object (imagePath attribute is nsstring) but I don’t know how to call the image because it must be always available until user delete the managed object.
I thought to call every image with managed object’s ID but I believe that it is too long and it’s still temporary when I try to save my image…
How can I call every image for each managed object?
Thank you!
Using the managed object’s ID turned into a file name string is actually ideal since it is guaranteed to be unique. The length of the name is hardly an issue to the file system.