---
title: "mutableArrayValue(forKeyPath:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/mutablearrayvalue(forkeypath:)"
---

# mutableArrayValue(forKeyPath:)

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

## Declaration

```swift
func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
```

## Parameters

- `keyPath`: A key path, relative to the receiver, to an ordered to-many relationship.

## Return Value

Return Value A mutable array that provides read-write access to the ordered to-many relationship specified by keyPath.

## Discussion

Discussion See mutableArrayValue(forKey:) for additional details.

## See Also

### Getting Values

- [value(forKey:)](objectivec/nsobject-swift.class/value(forkey:).md)
- [value(forKeyPath:)](objectivec/nsobject-swift.class/value(forkeypath:).md)
- [dictionaryWithValues(forKeys:)](objectivec/nsobject-swift.class/dictionarywithvalues(forkeys:).md)
- [value(forUndefinedKey:)](objectivec/nsobject-swift.class/value(forundefinedkey:).md)
- [mutableArrayValue(forKey:)](objectivec/nsobject-swift.class/mutablearrayvalue(forkey:).md)
- [mutableSetValue(forKey:)](objectivec/nsobject-swift.class/mutablesetvalue(forkey:).md)
- [mutableSetValue(forKeyPath:)](objectivec/nsobject-swift.class/mutablesetvalue(forkeypath:).md)
- [mutableOrderedSetValue(forKey:)](objectivec/nsobject-swift.class/mutableorderedsetvalue(forkey:).md)
- [mutableOrderedSetValue(forKeyPath:)](objectivec/nsobject-swift.class/mutableorderedsetvalue(forkeypath:).md)
