fixing error in registerDefaults

This commit is contained in:
Shelley Vohr 2017-12-12 13:08:09 -05:00
parent 5720a8e7d5
commit 8b447b9291
No known key found for this signature in database
GPG key ID: F13993A75599653C
5 changed files with 68 additions and 1 deletions

View file

@ -106,6 +106,14 @@ This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
Same as `unsubscribeNotification`, but removes the subscriber from `NSNotificationCenter`.
### `systemPreferences.registerDefaults(defaults)` _macOS_
* `defaults` Object - a dictionary of (`key: value`) user defaults
* `key` String
* `value` Any
Add the specified defaults to your application's `NSUserDefaults`.
### `systemPreferences.getUserDefault(key, type)` _macOS_
* `key` String