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

# mutableSetValue(forKeyPath:)

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

## Declaration

```swift
func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
```

## Parameters

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

## Return Value

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

## Discussion

Discussion See mutableSetValue(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)
- [mutableArrayValue(forKeyPath:)](objectivec/nsobject-swift.class/mutablearrayvalue(forkeypath:).md)
- [mutableSetValue(forKey:)](objectivec/nsobject-swift.class/mutablesetvalue(forkey:).md)
- [mutableOrderedSetValue(forKey:)](objectivec/nsobject-swift.class/mutableorderedsetvalue(forkey:).md)
- [mutableOrderedSetValue(forKeyPath:)](objectivec/nsobject-swift.class/mutableorderedsetvalue(forkeypath:).md)
