xcode NSBrowser 简单示例

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3649494/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:42:37  来源:igfitidea点击:

NSBrowser simple example

xcodemacosnsbrowser

提问by sole007

I need to display the file system in the NSBrowser. Please provide with some sample examples. ORis there any other way to take path as input from the users.

我需要在 NSBrowser 中显示文件系统。请提供一些示例。 或者有没有其他方法可以将路径作为用户的输入。

回答by dade

I could not use the SimpleCocoaBrowser example to embed a filesystem navigation for my app, there's a Swift version here:

我无法使用 SimpleCocoaBrowser 示例为我的应用程序嵌入文件系统导航,这里有一个 Swift 版本:

http://dcandi.com/post/cocoa-filesystem-browser/

http://dcandi.com/post/cocoa-filesystem-browser/