Is NSDocumentDirectory unique to this application?

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?

+3
source share
1 answer

iPhone - . Mac NSDocumentDirectory , - , , , - iPhone Mac.

+6

Source: https://habr.com/ru/post/1706418/


All Articles