Compile like this:
and run from the command line:
I looked at the data directly, because I was (wrongly) using NSLog as shown in the last call, and I wanted to look at the bytes directly. As expected, hex 78 is decimal 7*16 + 8 = 120, which is 'x' in ascii.
However, there is a better way to do this, as discussed in this post. NSUserDefaults will read command line arguments. It works like so:
As discussed in the post, this method is really versatile, it can parse for integers or floats or booleans. (If you try to copy and paste this code, be sure to fix the < symbol in the import statement).
You can get an idea what is in the dictionary by doing this from the command line: