15 Most Recent [RSS]
More...
|
A handy trick for finding NSUserDefaults keys
Here's a handy trick for everyone who wants to get some information from the system or one of the installed applications: Type defaults read > AllDefaults.txt into Terminal.app and it'll give you a file containing a nice list of all preferences of all installed apps, with the domains (in most cases those are the applications' bundle identifiers) at the top level.
For example, that way I found out that the easiest way to get the current user's e-mail address is: NSString* emailAddress = [[[NSUserDefaults standardUserDefaults] persistentDomainForName: @"AddressBookMe"] objectForKey: @"ExistingEmailAddress"]; | |