Skip to Main Content
Modding Mac OS X
book

Modding Mac OS X

by Erica Sadun
September 2004
Intermediate to advanced content levelIntermediate to advanced
304 pages
9h 26m
English
O'Reilly Media, Inc.
Content preview from Modding Mac OS X

Preferences Domains

Earlier in this chapter, you read about file domains. File domains help structure the way that items are stored and protected on your computer and network. For example, you can freely access files in your Home directory (your user domain), but not files in the Home directories of other users. Preferences domains work in much the same way. They provide ways that preferences (or defaults) are stored and scoped. Preferences that apply to Microsoft Word are stored in a distinct fashion from those that apply to iMovie. Preferences that affect a single user are stored in a different manner than those that affect all users on your computer.

In Mac OS X, you may encounter two basic types of preferences domains: application-specific ( application domains) and systemwide ( global domain). Application-specific domains affect just one application at a time and include preferences specific to that application. Systemwide global domains apply to all applications. For example, as you saw in the previous chapter, Apple’s Calculator application has a “Speaks when button pressed” preference called SpeaksButtonPressedDefaultsKey. This preference belongs to the com.apple.calculator domain and affects only the current user of the Calculator application. In contrast, the AppleLocale preference, which stores the default language system (en_US for U.S. English), affects the way that every application on your computer chooses its language. The global domain is called NSGlobalDomain ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

macOS Catalina: The Missing Manual

macOS Catalina: The Missing Manual

David Pogue
Building Cocoa Applications: A Step by Step Guide

Building Cocoa Applications: A Step by Step Guide

Simson Garfinkel, Michael Mahoney
Learning Cocoa

Learning Cocoa

Apple Computer Inc

Publisher Resources

ISBN: 0596007094Catalog PageErrata