<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/DistributedNotificationCenter/default()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDistributedNotificationCenter(cm)defaultCenter"
  },
  "title" : "default()"
}
-->

# default()

Returns the default distributed notification center, representing the local notification center for the computer.

```
class func `default`() -> DistributedNotificationCenter
```

## Return Value

Default distributed notification center for the computer.

## Discussion

This method calls [`forType(_:)`](/documentation/Foundation/DistributedNotificationCenter/forType(_:)) with an argument of `NSLocalNotificationCenterType`.

## See Also

  [Notification Programming Topics](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Notifications/Introduction/introNotifications.html#//apple_ref/doc/uid/10000043i)



---

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)