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. 登録ドメインがないならば、指定された辞書を使って1つ作成されます、そしてNSRegistrationDomainは検索リストの終わりに加えられます。

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. 登録ドメインの内容はディスクに書き出されません;あなたはこのメソッドを、あなたのアプリケーションが開始するたびごとに呼び出さなければなりません。あなたは、plistファイルをアプリケーションのもつResourcesディレクトリの中に置いて、そしてあなたがそのファイルから読んで知りたい内容でregisterDefaults:を呼び出せます。