---
title: maximumRecentDocumentCount
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsdocumentcontroller/maximumrecentdocumentcount
---

# maximumRecentDocumentCount

The maximum number of items that may be presented in the standard Open Recent menu.

## Declaration

```swift
var maximumRecentDocumentCount: Int { get }
```

## Discussion

Discussion A value of 0 indicates that NSDocumentController will not attempt to add an Open Recent menu to your application’s File menu, although NSDocumentController will not attempt to remove any preexisting Open Recent menu item. The default implementation returns a value that is subject to change and may or may not be derived from a setting made by the user in System Preferences.

## See Also

### Managing the Open Recent Menu

- [clearRecentDocuments(_:)](appkit/nsdocumentcontroller/clearrecentdocuments(_:).md)
- [noteNewRecentDocumentURL(_:)](appkit/nsdocumentcontroller/notenewrecentdocumenturl(_:).md)
- [noteNewRecentDocument(_:)](appkit/nsdocumentcontroller/notenewrecentdocument(_:).md)
- [recentDocumentURLs](appkit/nsdocumentcontroller/recentdocumenturls.md)
