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

# mutableOrderedSetValue(forKeyPath:)

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

## Declaration

```swift
func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
```

## Parameters

- `keyPath`: A key path, relative to the receiver, to a uniquing ordered to-many relationship represented by a set.

## Return Value

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

## Discussion

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