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

For the More Curious: Reading/Writing Defaults from the Command Line

You can use the defaults command-line tool to safely read and write defaults. For example, to see your defaults for Xcode, you can bring up the Terminal and enter the following command:

d​e​f​a​u​l​t​s​ ​r​e​a​d​ ​c​o​m​.​a​p​p​l​e​.​d​t​.​X​c​o​d​e​

You should see all your defaults for Xcode. There are a lot of them! A few lines of ours look like this:

I​D​E​D​i​s​a​b​l​e​G​i​t​S​u​p​p​o​r​t​F​o​r​N​e​w​P​r​o​j​e​c​t​s​ ​=​ ​1​;​ I​D​E​E​n​a​b​l​e​L​i​v​e​I​s​s​u​e​s​ ​=​ ​0​;​ I​D​E​F​i​l​e​T​e​m​p​l​a​t​e​C​h​o​o​s​e​r​A​s​s​i​s​t​a​n​t​S​e​l​e​c​t​e​d​T​e​m​p​l​a​t​e​C​a​t​e​g​o​r​y​ ​=​ ​S​o​u​r​c​e​;​ I​D​E​F​i​l​e​T​e​m​p​l​a​t​e​C​h​o​o​s​e​r​A​s​s​i​s​t​a​n​t​S​e​l​e​c​t​e​d​T​e​m​p​l​a​t​e​N​a​m​e​ ...

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