Expand description
Bundle type for Foundation.
Corresponds to Foundation/NSBundle.hpp.
§C++ Equivalent
namespace NS {
class Bundle : public Referencing<Bundle> {
public:
static Bundle* mainBundle();
static Bundle* bundle(const class String* pPath);
static Bundle* bundle(const class URL* pURL);
static class Array* allBundles();
static class Array* allFrameworks();
static Bundle* alloc();
Bundle* init(const class String* pPath);
Bundle* init(const class URL* pURL);
bool load();
bool unload();
bool isLoaded() const;
bool preflightAndReturnError(class Error** pError) const;
bool loadAndReturnError(class Error** pError);
// ... many path/URL methods
class String* bundleIdentifier() const;
class Dictionary* infoDictionary() const;
class String* localizedString(...) const;
};
}Structs§
- Bundle
- An Objective-C bundle object.
Functions§
- localized_
string - Get a localized string from the main bundle.
- localized_
string_ from_ table - Get a localized string from a table in the main bundle.
- localized_
string_ from_ table_ in_ bundle - Get a localized string from a table in a bundle.
- localized_
string_ with_ default_ value - Get a localized string with a default value.