For some reason, since multitasking has arrived, NSUserDefaults seem to not save the settings to disk anymore every time the app closes.
This happens: When a setting is changed in NSUserDefaults and home button gets pressed, home screen becomes visible. app is still running in background. Then I press twice the home button, and remove the app from the task manager. App is now really quit. Then I tap the icon of the app to launch it again. Voilla: Settings not stored! wrong, old value!
But when I do this, it works: Press home button, tap app icon again, press home button again, and NOW double tap home button and kill the app. Tap icon again. Now the app shows the correct settings.
I never explicitely saved NSUserDefaults since it always worked fine. But now, iOS seems to be not clever enough to do that automatically... is there anything I can call in any of those "app will quit now" methods in the app delegate, so that the NSUserDefaults dict really gets saved?