---
title: "setObservationInfo(_:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsmanagedobject/setobservationinfo(_:)"
---

# setObservationInfo(_:)

Sets the observation info of the managed object.

## Declaration

```swift
func setObservationInfo(_ inObservationInfo: UnsafeMutableRawPointer?)
```

## Parameters

- `inObservationInfo`: The new observation info for the receiver.

## Discussion

Discussion For more about observation information, see Key-Value Observing Programming Guide.

## See Also

### Supporting Key-Value Observing

- [didAccessValue(forKey:)](coredata/nsmanagedobject/didaccessvalue(forkey:).md)
- [observationInfo()](coredata/nsmanagedobject/observationinfo().md)
- [willAccessValue(forKey:)](coredata/nsmanagedobject/willaccessvalue(forkey:).md)
- [didChangeValue(forKey:)](coredata/nsmanagedobject/didchangevalue(forkey:).md)
- [didChangeValue(forKey:withSetMutation:using:)](coredata/nsmanagedobject/didchangevalue(forkey:withsetmutation:using:).md)
- [willChangeValue(forKey:)](coredata/nsmanagedobject/willchangevalue(forkey:).md)
- [willChangeValue(forKey:withSetMutation:using:)](coredata/nsmanagedobject/willchangevalue(forkey:withsetmutation:using:).md)
