Instance Method

registerDefaults:

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

Declaration

- (void)registerDefaults:(NSDictionary<NSString *,id> *)registrationDictionary;

Parameters

dictionary

The dictionary of keys and values you want to register.

Discussion

If there is no registration domain, one is created using the specified dictionary, and NSRegistrationDomain is added to the end of the search list.

The contents of the registration domain are not written to disk; you need to call this method each time your application starts. You can place a plist file in the application's Resources directory and call registerDefaults: with the contents that you read in from that file.