NAME

macosx::resource — Get resource strings or paths from a bundle.

synopsis

wyrm::macosx::resource bundle-path [ -- ] [ resource ] [ .extension ] [ directory ]

wyrm::macosx::resource bundle-path -plugins|-frameworks|-shared|-support|-resource

wyrm::macosx::resource bundle-path -string key [ -default value ] [ -table name ]

wyrm::macosx::resource bundle-path -info [ key ]

description

Returns the path to a resource. If a package name is given, the resource whence it was loaded is returned, otherwise the resource of the main executable is returned. If the package was not in a resource, an empty string is returned.

If suffix is given, the resource is the innermost directory with that suffix. Otherwise the resource is the innermost directory with a Contents/info.plist or info.plist.