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

objectForKey:

Returns the object associated with the specified key. 指定されたキーと結びつけられたオブジェクトを返します。

Declaration 宣言

- (id)objectForKey:(NSString *)defaultName;

Parameters パラメータ

defaultName

A key in the current user‘s defaults database. 現在のユーザのもつdefaultsデータベースの中のあるキー。

Return Value 戻り値

The object associated with the specified key, or nil if the key was not found. 指定されたキーと結びつけられたオブジェクト、またはnil、もしキーが見つけられなかったならば。

Discussion 議論

This method searches the domains included in the search list in the order in which they are listed and returns the object associated with the first occurrence of the specified default. このメソッドは、検索リストの中に含まれるドメインを検索します、それにおいてそれらが一覧にされるところの順番で、そして指定されたdefaultの最初の発生と結びつけられるオブジェクトを返します。

Special Considerations 特別な注意事項

The returned object is immutable, even if the value you originally set was mutable. 返されるオブジェクトは不変です、たとえあなたがもともと設定した値が可変だったとしても。

See Also 参照

Getting Default Values defaults値を取得する