I have one application that sets preferences. It uses those prefs, and so does another application. When I use the following code in the second application, it reads the preferences correctly once.
NSUserDefaults* settings = [NSUserDefaults standardUserDefaults];
[settings addSuiteNamed:@"com.WVS.Wrestling-Tools"];
[settings synchronize]; // this just a shot in the dark.. didn't work
[self setScoreboardIndex:[settings integerForKey:@"matName"]];
On subsequent calls of the same code, I get the [settings integerForKey:@"matName"] is always the value that was first read.
In the first application, I'm using the Shared User Defaults Controller to read/write the preferences. Not sure if that matters to this issue or not.
How can I force the second application to always get the most recent values?