1

When I log my app’s NSUserDefaults by passing the results of this code to NSLog:

[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]]

…I get results such as seen in this excerpt.

WebKitXSSAuditorEnabled = 1;
WebKitZoomsTextOnly = 1;
"chinese_character_set" = traditional;
"com.testflightapp.had-first-session" = 1;

When I add a key (an NSString) and value to NSUserDefaults, my keys have quote marks (QUOTATION MARK, ") surrounding the keys. Yet Apple's entries do not.

Why the difference?

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154

0 Answers0