update systemPreferences docs
This commit is contained in:
parent
8a24733ee6
commit
9a40bbd082
1 changed files with 9 additions and 0 deletions
|
@ -106,6 +106,15 @@ This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
|
||||||
|
|
||||||
Same as `unsubscribeNotification`, but removes the subscriber from `NSNotificationCenter`.
|
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_
|
### `systemPreferences.getUserDefault(key, type)` _macOS_
|
||||||
|
|
||||||
* `key` String
|
* `key` String
|
||||||
|
|
Loading…
Reference in a new issue