Skip to main content

Module bundle

Module bundle 

Source
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.