You have seen how an application's bundle structure defines various properties for an application. Use the techniques for examining bundles you learned in this chapter to answer the following questions.
How many document types does the TextEdit application support?
What is the Preview application's bundle signature?
What is Terminal's bundle identifier?
Some document types actually are bundles rather than solitary files. Examine a number of nib files. What kind of files might you find in an Interface Builder file?
What is the current bundle version of the AppKit framework?
What is the current bundle version of the JavaVM framework?
The defaults command provides a convenient way for working with application preferences from Terminal. You can read and write preference values without having to manually find and edit the preference file. Use the defaults command to perform the following tasks; if necessary check the defaults man page for help.
List all your machine-independent preference domains.
List all your machine-specific preference domains.
Display your Terminal preferences.
Display HIToolbox's preferences.
Create a new preference file called MyExamplePref with a single key Autosave set to 1.
Add a key colors to your MyExamplePref preference with an array of values: red, orange, yellow.
Delete the Autosave key from your MyExamplePref preference.