Einhugur macOS Bridge plugin. |

# NSUserDefaults.RegisterDefaults Method

Adds the contents of the specified dictionary to the registration domain.

RegisterDefaults(
defaults as EinhugurCoreBridge.NSDictionary)

#### Parameters

defaults
  A dictionary containing the defaults for the Application.

#### Remarks

You normally will want to do this in your App.Open event.
The following example will register defaults for application with given Bundle identifier. So it is important to set the Apps bundle identifier properly also.

using EinhugurCoreBridge
Dim defaultsDict as NSMutableDictionary = new NSMutableDictionary()
Dim defaults as NSUserDefaults = new NSUserDefaults()
defaultsDict.SetIntegerForKey("MainWindowLeft", 100)
defaultsDict.SetIntegerForKey("MainWindowTop", 100)
defaultsDict.SetIntegerForKey("MainWindowWidth", 500)
defaultsDict.SetIntegerForKey("MainWindowHeight", 500)
defaults.RegisterDefaults(defaultsDict)

#### See Also

NSUserDefaults Class