开发者

Realbasic OS X: find resource directory

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜