Instance Method インスタンスメソッド

setUserInfoObject:forKey:

Sets a value in the user info dictionary. ユーザ情報辞書の中のある値を設定します。

Declaration 宣言

- (void)setUserInfoObject:(id)objectOrNil 
                   forKey:(NSProgressUserInfoKey)key;

Parameters パラメータ

objectOrNil

The object to set for the specified key, or nil to remove an existing entry in the dictionary.

key

The key for storing the specified object.

Discussion 議論

Use this method to set a value in the userInfo dictionary, with appropriate KVO notification for properties with values that can depend on values in the user info dictionary, like localizedDescription.

Supply a value of nil to remove an existing dictionary entry for a specified key.

See Also 参照

Inspecting Progress Information 進捗情報を調査する