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.
我将数据文件存储在 RealBasic 应用程序的资源目录中。但是我如何以编程方式定位它?
我查看了 SpecialFolder 类,但没有发现任何用处。
该应用程序仅适用于 OS X,因此我不需要处理多平台问题。
谢谢!
伊万
试试 app.executablefile.parent.parent.child("Resources")
如果你有 MonkeyBread 软件插件,你可以使用这个:
dim f as FolderItem f = app.BundleResourceFolderMBS
我认为这更容易理解。