use nsuserdefaults for ios
this requires setting the filetype in xcode to objective-c++ source