<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSDate/distantFuture",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDate(cpy)distantFuture"
  },
  "title" : "distantFuture"
}
-->

# distantFuture

A date object representing a date in the distant future.

```
class var distantFuture: Date { get }
```

## Return Value

An [`NSDate`](/documentation/Foundation/NSDate) object representing a date in the distant future (in terms of centuries).

## Discussion

You can pass this value when an [`NSDate`](/documentation/Foundation/NSDate) object is required to have the date argument essentially ignored. For example, the <doc://com.apple.documentation/documentation/AppKit/NSWindow> method <doc://com.apple.documentation/documentation/AppKit/NSWindow/nextEvent(matching:until:inMode:dequeue:)> returns `nil` if an event specified in the event mask does not happen before the specified date. You can use the object returned by [`distantFuture`](/documentation/Foundation/NSDate/distantFuture) as the date argument to wait indefinitely for the event to occur.

```objc
myEvent = [myWindow nextEventMatchingMask:myEventMask
    untilDate:[NSDate distantFuture]
    inMode:NSDefaultRunLoopMode
    dequeue:YES];
```

---

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)