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

mutableOrderedSetValue(forKey:)

Returns a mutable ordered set that provides read-write access to the uniquing ordered to-many relationship specified by a given key.

Declaration 宣言

func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet

Parameters パラメータ

key

The name of a uniquing ordered to-many relationship.

Return Value 戻り値

A mutable ordered set that provides read-write access to the uniquing to-many relationship specified by key.

Discussion 解説

Objects added to the mutable set proxy become related to the receiver, and objects removed from the mutable set become unrelated. The default implementation recognizes the same simple accessor methods and set accessor methods as value(forKey:), and follows the same direct instance variable access policies, but always returns a mutable collection proxy object instead of the immutable collection that value(forKey:) would return.

The search pattern that mutableOrderedSetValueForKey: uses is described in Accessor Search Patterns in Key-Value Coding Programming Guide.

See Also 参照

Getting Values 値を取得する