Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在实现一个打开二进制文件的 MacOS 应用程序,我想显示有关输入文件的一些信息(文件名、文件位置、大小......)。NSScrollView 是正确的选择吗?如果是,是否可以禁用输入文本功能?我只希望我的 NSScrollView 可以自动滚动,并让用户在需要时选择要复制/粘贴的文本。
第二个问题是我是否可以将文件拖放到 NSScrollView 中,而不是使用 NSOpenPanel 对话框打开文件。
谢谢!