I have an app which stores data using NSKeyedArchiver and everything was working fine.
In the first version of the app a value X was stored as a string, but now I changed it to be stored and saved as an int. The problem is if someone updates from the old version to the newest the app crashes because intForKey: gets called on a key containing a String.
Is there some way during decoding to check if what is being decoded is an int or an object?
intForKey:ordecodeIntegerForKey:method? Can you post a code snippet showing how you're doing this? - JRG-Developer