From 9a40bbd082483dac937214d7cd713d49471869df Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Sun, 10 Dec 2017 14:46:19 -0500 Subject: [PATCH] update systemPreferences docs --- docs/api/system-preferences.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/api/system-preferences.md b/docs/api/system-preferences.md index 1fe53eed360b..c23c0a3829d6 100644 --- a/docs/api/system-preferences.md +++ b/docs/api/system-preferences.md @@ -106,6 +106,15 @@ This is necessary for events such as `NSUserDefaultsDidChangeNotification`. Same as `unsubscribeNotification`, but removes the subscriber from `NSNotificationCenter`. +### `systemPreferences.registerDefaults(defaults)` _macOS_ + +* `defaults`: a dictionary of (`key: value`) user defaults + * `key` - must be of type `string` + * `value` - can be of type `string`, `boolean`, `integer`, `float`, `double`, + `url`, `array` or `dictionary`. + +Allows for registering of your application's preference defaults in `NSUserDefaults`. + ### `systemPreferences.getUserDefault(key, type)` _macOS_ * `key` String