在AppKit中," Open Recent" menu具有许多有用的功能,例如能够显示上下文的相关文件夹,但仅在需要时才显示。
有没有办法自己访问此功能?我想在窗口中显示文件夹列表,并且我想使用与Apple相同的算法包含同名文件夹的路径。
有没有办法做到这一点,而不是自己从头开始实现它?
答案 0 :(得分:1)
请参阅- [NSDocumentController recentDocumentURLs]
https://developer.apple.com/reference/appkit/nsdocumentcontroller/1514976-recentdocumenturls