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.
精彩评论