Realbasic OS X: find resource directory
Question
I'm storing a data file in the resource directory of a RealBasic app. But how do I programmatically 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
Solution
try app.executablefile.parent.parent.child("Resources")
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow