Type Property


A date object representing a date in the distant future.


@property(class, readonly, copy) NSDate *distantFuture;

Return Value

An NSDate object representing a date in the distant future (in terms of centuries).


You can pass this value when an NSDate object is required to have the date argument essentially ignored. For example, the NSWindow method nextEventMatchingMask:untilDate: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 as the date argument to wait indefinitely for the event to occur.

myEvent = [myWindow nextEventMatchingMask:myEventMask
    untilDate:[NSDate distantFuture]

See Also

Getting Temporal Boundaries


A date object representing a date in the distant past.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software