0nftnq
Last Updated: February 25, 2016
·
345
· gregorym
De19bbc5f395faa8119b555ed6206c51

Get the absolute path of a ressource in MacRuby

Let say we have a "menubar-icon.png" under /Resources in our macruby application and we want the absolute path of that file in order to do something with it.

Here is how to do it:

absolute_path = NSBundle.mainBundle.pathForResource("menubar-icon", ofType:"png")
Say Thanks
Respond