In AppKit, the "Open Recent" menu has a lot of useful functionality, like the ability to display relevant folders for context, but only when needed.
Is there a way to get access to this functionality myself? I want to display a list of folders in a window, and I'd like to include paths for identically named folders, using the same algorithm as Apple.
Is there any way to do that, without implementing it myself from scratch?
参见- [NSDocumentController recentDocumentURLs]
https://developer.apple.com/reference/appkit/nsdocumentcontroller/1514976-recentdocumenturls
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.