I would like to save some user data in my application for iPhone. I looked at the SQLite sample and it uses something similar to this:
NSArray *paths = NSSearchPathForDirectoriesInDomains( NSDocumentDirectory, NSUserDomainMask ,YES );
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:dbName];
What would I like to know if "writableDBPath" is unique to my application? Is there a risk that my "dbName" will encounter another file with the same name as that used by another application?
source
share