The dictionary of keys and values you want to register. あなたが登録することを望むキーと値からなる辞書。
Instance Method
インスタンスメソッド
register
registerDefaults:
Adds the contents of the specified dictionary to the registration domain.
指定された辞書の内容を登録ドメインに加えます。
Availability 有効性
- iOS 2.0+
- iPadOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Technology
- Foundation ファウンデーション
Declaration 宣言
- (void)registerDefaults:(NSDictionary
<NSString
*,id> *)registrationDictionary;
Parameters パラメータ
dictionary
Discussion 議論
If there is no registration domain, one is created using the specified dictionary, and NSRegistration
is added to the end of the search list.
登録ドメインがないならば、指定された辞書を使って1つ作成されます、そしてNSRegistration
は検索リストの終わりに加えられます。
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 register
with the contents that you read in from that file.
登録ドメインの内容はディスクに書き出されません;あなたはこのメソッドを、あなたのアプリケーションが開始するたびごとに呼び出さなければなりません。あなたは、plistファイルをアプリケーションのもつResourcesディレクトリの中に置いて、そしてあなたがそのファイルから読んで知りたい内容でregister
を呼び出せます。