NSDocumentController noteNewRecentDocumentURL(_:) 等效于 MacCatalyst

问题描述

我最近使用 UIKit 为 iOS、iPadOS 和 macOS 构建了一个应用。

这个应用程序打开文件(它是一个代码编辑器)。从 Finder 打开文件时,它会出现在最近的菜单中,但当从应用菜单打开文件时,它不会出现。

我想使用 NSDocumentController noteNewRecentDocumentURL(_:) 手动添加它,但它在 Mac Catalyst 中不可用。

有什么方法可以将文件添加到 Mac Catalyst 的最近菜单中?

macOS 文档(仅适用于 AppKit,不适用于催化剂):https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514967-notenewrecentdocumenturl

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...