开发者

Realbasic OS X: find resource directory

开发者 https://www.devze.com 2023-01-23 10:45 出处:网络
I\'m storing a data file in the resource directory of a RealBasic app. But how do I programma开发者_StackOverflow社区tically locate it?

I'm storing a data file in the resource directory of a RealBasic app. But how do I programma开发者_StackOverflow社区tically locate it?

I've looked through the SpecialFolder classes, but found nothing useful.

The app will be OS X only, so I don't need to take care of multiplatform issues.

Thanks!

Yvan


try app.executablefile.parent.parent.child("Resources")


If you have the MonkeyBread Software plugins you can use this:

  dim f as FolderItem 
  f = app.BundleResourceFolderMBS

which I think is much easier to understand.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号