NSUserDefaults no .plist file in ~/Library/Preferences folder

I try to create my .plist file named it.iparos.test using NSUserDefaults initWithSuiteName The code bellows is what I use to create and setting for test my .plist file preferences.

NSUserDefaults *prefs = [[NSUserDefaults alloc] initWithSuiteName:@"it.iparos.test"];
bool    b = false;
double  num = 56.6;
[prefs setBool:b forKey: @"boolean value"];
[prefs setDouble:num forKey: @"double value"];
[prefs setObject:@"seconda prova" forKey: @"string value"];

Then if read the preferences I got the corrected saved values also if I quit and restart the app.

bool b2 = [prefs boolForKey:@"boolean value"];
[prefs setDouble:num forKey: @"double"];
double num2 = [prefs doubleForKey:@"double value"];
NSString *s2 = [prefs stringForKey:@"string value"];

The problem is that in ~/Library/Preferences/ folder there isn't the file it.iparos.test.plist So where this .plist file is? I try to search on entire disk without result. Thinking the preference is saved in a cache I try to restart the Mac and running the program and I only read my preferences values I got the previous saved values but I can't figure where is the it.iparos.test.plist file.

If your app is sandboxed then your app’s container is within ~/Library/Containers and your defaults property list will be within that. If you use a non-standard suite name, it’s likely to be within the container in ~/Library/Group Containers.

WARNING Accessing the defaults property list file directly is not reliable. Use either the API or the defaults command-line tool.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

NSUserDefaults no .plist file in ~/Library/Preferences folder
 
 
Q