update systemPreferences docs

This commit is contained in:
Shelley Vohr 2017-12-10 14:46:19 -05:00
parent 8a24733ee6
commit 9a40bbd082
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -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