PDA

View Full Version : High Score Save/Load/Sort Coding article




ArtandStructure
Jul 4, 2009, 03:48 PM
Hello all.


I have consolidated and annotated the code from a method for dealing with high scores in an article on my web site, Working with High Scores (http://www.artandstructure.com/softwaredev/hscores.php). Like the photography section of my site I hope to add articles periodically.

When searching for a method to tackle high scores in the iPhone SDK I found no similar approach laid out, at least not in code. I think this is a unique solution, at least as far as spelling it out for people, in a compact and powerful form.

I know the iPhone SDK is a very close cousin to developing on OS X itself, so I hope this will be of interest/use for all you folks as well.

Let me know if anything is unclear about the article.


All the best,


Jesse Widener
Art and Structure (http://www.artandstructure.com)



kainjow
Jul 5, 2009, 07:01 PM
Don't forget you don't need to always use C data types. NSArray and NSDictionary make doing things like this a snap :)

ArtandStructure
Jul 6, 2009, 01:09 AM
I appreciate the suggestion.

I am new to the iPhone SDK and had looked briefly into NSArray and NSDictionary but from what I saw, and the examples people were using, it didn't seem as though it would be any easier to use than the method I chose. In fact it appeared it would take more code to accomplish the same thing. Am I mistaken?

I would surely be interested in knowing if there is an even easier, more compact, more efficient way.


All the best,


Jesse Widener
Art and Structure (http://www.artandstructure.com)