O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What is the User’s Defaults Database?

The NSUserDefaults object relies on the user’s defaults database to persist the defaults that are written to it. The database itself is persisted as .plist files in ~/Library/Preferences. You can open this folder in Finder by using GoGo to Folder... and entering the path. These files are binary plists; you can view their contents in Xcode.

Each application’s preferences are stored in a file using its bundle identifier as the base name. SpeakLine’s bundle identifier is com.bignerdranch.SpeakLine, unless you used a different organization identifier or project name when you created the application in Chapter 6.

In older versions of OS X you could edit these files directly, but in OS X Mavericks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required