This is too weird.
I am saving a few integer values to a plist for a "saved game state" using the
applicationDidEnterBackground method .
I'm saving 6 values, the last 3 of which are created by random generators.
Sometimes after I close out of the application in the simulator I discover that the previous state of the 3 random values has changed.
When I open the plist to look at the saved values the last 3 values are 6 6 6.
I'm not making this up!
Those 3 values can only be changed by calling the random generation method.
That method can only be invoked by pressing a button in the UI.
Whenever the plist gets changed by this behavior it is always 6 6 6, so it can not be coming from the random generator.
It does not always happen. Only when I close out of the simulator in a specific manner. I don't know if it is from first clicking the home button, and then the red "kill task" button in Xcode, or some other order of operations, but it does not happen all the time.
Does this sound familiar to anyone or do I need to call an exorcist?
I am saving a few integer values to a plist for a "saved game state" using the
applicationDidEnterBackground method .
I'm saving 6 values, the last 3 of which are created by random generators.
Sometimes after I close out of the application in the simulator I discover that the previous state of the 3 random values has changed.
When I open the plist to look at the saved values the last 3 values are 6 6 6.
I'm not making this up!
Those 3 values can only be changed by calling the random generation method.
That method can only be invoked by pressing a button in the UI.
Whenever the plist gets changed by this behavior it is always 6 6 6, so it can not be coming from the random generator.
It does not always happen. Only when I close out of the simulator in a specific manner. I don't know if it is from first clicking the home button, and then the red "kill task" button in Xcode, or some other order of operations, but it does not happen all the time.
Does this sound familiar to anyone or do I need to call an exorcist?