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

replaceValueAtIndex:inPropertyWithKey:withValue:

Replaces the object at the specified index in the collection specified by the passed key.

Declaration 宣言

- (void)replaceValueAtIndex:(NSUInteger)index 
          inPropertyWithKey:(NSString *)key 
                  withValue:(id)value;

Discussion 解説

The method replaceIn<Key>:atIndex: is invoked if it exists. If no corresponding scripting-KVC-compliant method (-replaceIn<Key>atIndex:) is found, this method invokes -mutableArrayValueForKey: and mutates the result.

See Also 参照

Indexed access