PreferenceBundles

From iPhone Development Wiki
Revision as of 15:38, 14 October 2009 by KennyTM~ (talk | contribs) (Created page with ''''Preference Bundles''' are bundles for extending the Settings application. == Structure of a Preference Bundle == Preference bundles should have an extensi…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Preference Bundles are bundles for extending the Settings application.

Structure of a Preference Bundle

Preference bundles should have an extension of .bundle. The principle class of the bundle should be a subclass of PSListController. Most of the time there are lots of preference specifier plists which defines a page of setting. If a specifier plist is called spec.plist, there should be a corresponding localization file called spec.strings. The bundle can have a 29×29 icon, with a preferred name of icon.png.

Adding a Preference Bundle

To add a preference bundle foo.bundle to the front page of the Settings application, save this as a plist in /Library/PreferenceLoader/Preferences/:

entry = {
  bundle = foo;
  cell = PSLinkCell;
  icon = icon.png;
  isController = 1;
  label = "Description of the setting";
};

References