I'm working on a Pong game to lean some iPhone programming.
I have an NSString* playerName and int playerScore.
I get this when the game is over.
Now I need a way to store high scores on the user's device. However there are a couple caveats.
I only bother to store a score if it is a top 10 high score. And if the user's name is already in the list and the score is worth adding (eg > 10th score), the score is updated and the list s resorted by score.
I'm coming from C++ world.
In C++, I would use a simple file that I would parse, work with in memory, then rewrite the file.
What I would like to know though, is how this should be done in Obj-C. Is there a class or something that makes this sort of task simple and convenient?
Thanks