A.5. Chapter 5
A.5.1. Exercise 1 solution
TextEdit's Info.plist file describes seven different document types:
Rich Text Format documents (called NSRTFPboardType)
Microsoft Word Documents
Rich Text Format with Attachments (called NSRTFDPboardType)
Plain Text Documents (called NSStringPboardType)
Apple SimpleText Documents
HTML Documents
Apple Web archives
Preview's bundle signature is prvw.
Terminal's bundle identifier is com.apple.Terminal.
The exact contents of a nib file bundle will depend on what the nib file represents. Files commonly found in nibs include
classes.nib
info.nib
keyedobjects.nib
objects.nib
Some Interface Builder files might even include images and other resources embedded within the nib bundle, but such nibs should be very rare.
The current bundle version of the AppKit framework has been C throughout the Mac OS X releases to date. Note the version is a single English letter.
The current bundle version of the JavaVM framework on your system depends on what you have installed. For example, if you have installed Java 1.4.2, the current version of JavaVM will be 1.4.2. Unlike AppKit, JavaVM uses traditional version numbers instead of individual English letters.
A.5.2. Exercise 2 solution.
defaults domains
defaults -currentHost domains
defaults read com.apple.Terminal
Recall that preferences are stored using an application's CFBundleIdentifier. You learned Terminal's bundle identifier in the preceding exercise (1c).
defaults -currentHost read com.apple.HIToolbox
HIToolbox is a framework, ...
Get Beginning Mac OS® X Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.