Jiggy 0.26 |
BundledescriptionThis class lets you find files inside your application bundle. There is only one global instance of this class and it applies to the current application’s bundle. examplevar imageFileName = Bundle.pathForResource( "images/cool.png") May return “/Applications/myapp.app/images/cool.png” Summary
pathForResource
Returns the full path to a resource (file) inside your bundle if it exists. For example, if you specify “images/cool.png” and such a file exists in your bundle, this function will return “/Applications/myapp.app/images/cool.png”. parameters
returns
pathForResourceInDirectory
Same as pathForResource above, but allows you to specify the directory separately from the resource name. parameters
returns
|
Returns the full path to your bundle.
string bundlePath readonly
Returns the full path to a resource (file) inside your bundle if it exists.
string pathForResource( string resource )
Same as pathForResource above, but allows you to specify the directory separately from the resource name.
string pathForResourceInDirectory( string directory , string resource )