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.