<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFNotificationCenterRemoveObserver(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFNotificationCenterRemoveObserver"
  },
  "title" : "CFNotificationCenterRemoveObserver(_:_:_:_:)"
}
-->

# CFNotificationCenterRemoveObserver(_:_:_:_:)

Stops an observer from receiving certain notifications.

```
func CFNotificationCenterRemoveObserver(_ center: CFNotificationCenter!, _ observer: UnsafeRawPointer!, _ name: CFNotificationName!, _ object: UnsafeRawPointer!)
```

## Parameters

`center`

The notification center to modify.

`observer`

The observer. This value must not be `NULL`.

`name`

The name of the notification to stop observing. If `NULL`, `observer` stops receiving callbacks for all notifications posted by `object`.

`object`

The object to stop observing. For distributed notifications, `object` must be a CFString object. If `NULL`, `observer` stops receiving callbacks for all objects posting notifications named `name`.

    If     `center`     is a Darwin notification center, this value is ignored.

## Discussion

If both `name` and `object` are `NULL`, this function unregisters `observer` from all the notifications for which it had previously registered with `center`.

---

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)