<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSKeyValueObservingCustomization",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation32NSKeyValueObservingCustomizationP"
  },
  "title" : "NSKeyValueObservingCustomization"
}
-->

# NSKeyValueObservingCustomization

Conforming to NSKeyValueObservingCustomization is not required to use Key-Value Observing. Provide an implementation of these functions if you need to disable auto-notifying for a key, or add dependent keys

```
protocol NSKeyValueObservingCustomization : NSObjectProtocol
```

## Topics

### Type Methods

[`static func automaticallyNotifiesObservers(for: AnyKeyPath) -> Bool`](/documentation/Foundation/NSKeyValueObservingCustomization/automaticallyNotifiesObservers(for:))

[`static func keyPathsAffectingValue(for: AnyKeyPath) -> Set<AnyKeyPath>`](/documentation/Foundation/NSKeyValueObservingCustomization/keyPathsAffectingValue(for:))

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)