MeVisLabToolboxReference
|
#include <macBundle.h>
Static Public Member Functions | |
static std::string | getBundleName (const std::string &bundlePath=std::string()) |
Return name of the bundle (CFBundleName) | |
static std::string | getBundleDirectory (const std::string &id=std::string()) |
Return absolute path to the bundle directory of bundle with the given id or the current application if no id is given (UTF8) | |
static std::string | getBundleDirectoryOfSubDirectory (const std::string &path) |
Return absolute path to the root bundle directory of the given subdirectory (UTF8) | |
static std::string | getBundleDirectoryPreferUmbrellaBundle () |
Return absolute path to the umbrella bundle directory in which this bundle is embedded. Return absolute path to just the main bundle directory otherwise (UTF8) | |
static std::string | getUmbrellaBundleDirectory () |
Return absolute path to the umbrella bundle directory in which this bundle is embedded. Return std::string() if this bundle is not within an umbrella bundle (UTF8) | |
static std::string | getBundleResourcesDirectory (const std::string &bundlePath=std::string()) |
Return absolute path of the given bundle's resources directory (UTF8) | |
static std::string | getBundlePrivateFrameworksDirectory (const std::string &bundlePath=std::string()) |
Return absolute path of the given bundle's resources directory (UTF8) | |
static std::string | getBundleSharedSupportDirectory (const std::string &bundlePath=std::string()) |
Return absolute path of the given bundle's shared support directory (UTF8) | |
static std::string | getBundleId (const std::string &bundlePath=std::string()) |
Return bundle identifier of given bundle or empty string if none was found (UTF8) | |
static std::string | getBundleExecutable (const std::string &bundlePath=std::string()) |
Returns absolute path of the main executable of the given bundle (UTF8) | |
static std::string | getSupportAppWithName (const std::string &appName, const std::string &bundlePath=std::string()) |
Returns absolute path of support application (bundled and unbundled) by looking at specific bundle folders (UTF8) | |
static std::string | getSupportAppWithId (const std::string &id, const std::string &bundlePath=std::string()) |
Returns absolute path of support application (bundles only) by looking at specific bundle folders (UTF8) | |
static bool | isApplicationBundle (const std::string &filePath) |
Returns 'true' if given path points to an application bundle (UTF8) | |
static std::string | getStringForInfoDictionaryKey (const std::string &key, const std::string &bundlePath=std::string()) |
Returns string value for the given key from the bundle's Info.plist file. | |
static bool | isSystemVersionSufficientForBundle (const std::string &minimumSystemVersionInfoDictKey="MLMinimumSystemVersion", bool displaySoftwareUpdateDialog=true) |
Check operating system version and display software update dialog if update is possible (UTF8) |
Bundle information.
Definition at line 16 of file macBundle.h.
static std::string macx::Bundle::getBundleDirectory | ( | const std::string & | id = std::string() | ) | [static] |
Return absolute path to the bundle directory of bundle with the given id or the current application if no id is given (UTF8)
static std::string macx::Bundle::getBundleDirectoryOfSubDirectory | ( | const std::string & | path | ) | [static] |
Return absolute path to the root bundle directory of the given subdirectory (UTF8)
static std::string macx::Bundle::getBundleDirectoryPreferUmbrellaBundle | ( | ) | [static] |
Return absolute path to the umbrella bundle directory in which this bundle is embedded. Return absolute path to just the main bundle directory otherwise (UTF8)
static std::string macx::Bundle::getBundleExecutable | ( | const std::string & | bundlePath = std::string() | ) | [static] |
Returns absolute path of the main executable of the given bundle (UTF8)
static std::string macx::Bundle::getBundleId | ( | const std::string & | bundlePath = std::string() | ) | [static] |
Return bundle identifier of given bundle or empty string if none was found (UTF8)
static std::string macx::Bundle::getBundleName | ( | const std::string & | bundlePath = std::string() | ) | [static] |
Return name of the bundle (CFBundleName)
static std::string macx::Bundle::getBundlePrivateFrameworksDirectory | ( | const std::string & | bundlePath = std::string() | ) | [static] |
Return absolute path of the given bundle's resources directory (UTF8)
static std::string macx::Bundle::getBundleResourcesDirectory | ( | const std::string & | bundlePath = std::string() | ) | [static] |
Return absolute path of the given bundle's resources directory (UTF8)
static std::string macx::Bundle::getBundleSharedSupportDirectory | ( | const std::string & | bundlePath = std::string() | ) | [static] |
Return absolute path of the given bundle's shared support directory (UTF8)
static std::string macx::Bundle::getStringForInfoDictionaryKey | ( | const std::string & | key, |
const std::string & | bundlePath = std::string() |
||
) | [static] |
Returns string value for the given key from the bundle's Info.plist file.
static std::string macx::Bundle::getSupportAppWithId | ( | const std::string & | id, |
const std::string & | bundlePath = std::string() |
||
) | [static] |
Returns absolute path of support application (bundles only) by looking at specific bundle folders (UTF8)
static std::string macx::Bundle::getSupportAppWithName | ( | const std::string & | appName, |
const std::string & | bundlePath = std::string() |
||
) | [static] |
Returns absolute path of support application (bundled and unbundled) by looking at specific bundle folders (UTF8)
static std::string macx::Bundle::getUmbrellaBundleDirectory | ( | ) | [static] |
Return absolute path to the umbrella bundle directory in which this bundle is embedded. Return std::string() if this bundle is not within an umbrella bundle (UTF8)
static bool macx::Bundle::isApplicationBundle | ( | const std::string & | filePath | ) | [static] |
Returns 'true' if given path points to an application bundle (UTF8)
static bool macx::Bundle::isSystemVersionSufficientForBundle | ( | const std::string & | minimumSystemVersionInfoDictKey = "MLMinimumSystemVersion" , |
bool | displaySoftwareUpdateDialog = true |
||
) | [static] |
Check operating system version and display software update dialog if update is possible (UTF8)
Returns 'true' if minimum system version specified in the bundle's Info.plist information dictionary if bigger or equal to the operating system version. if displaySoftwareUpdateDialog is true, display the software update dialog, but only if the major operating system version is the same and the minor operating system version is less than the required minimal version. If the system version is insufficient you should close your application immediately.