pub struct Bundle(/* private fields */);Expand description
An Objective-C bundle object.
C++ equivalent: NS::Bundle
Implementations§
Source§impl Bundle
impl Bundle
Sourcepub fn main_bundle() -> Option<Self>
pub fn main_bundle() -> Option<Self>
Get the main bundle.
C++ equivalent: static Bundle* mainBundle()
Sourcepub fn bundle_with_path(path: &String) -> Option<Self>
pub fn bundle_with_path(path: &String) -> Option<Self>
Get a bundle with the specified path.
C++ equivalent: static Bundle* bundle(const class String* pPath)
Sourcepub fn bundle_with_url(url: &Url) -> Option<Self>
pub fn bundle_with_url(url: &Url) -> Option<Self>
Get a bundle with the specified URL.
C++ equivalent: static Bundle* bundle(const class URL* pURL)
Sourcepub fn all_bundles() -> *mut Array<Bundle>
pub fn all_bundles() -> *mut Array<Bundle>
Get all bundles.
C++ equivalent: static class Array* allBundles()
Sourcepub fn all_frameworks() -> *mut Array<Bundle>
pub fn all_frameworks() -> *mut Array<Bundle>
Get all frameworks.
C++ equivalent: static class Array* allFrameworks()
Sourcepub fn init_with_path(&self, path: &String) -> Option<Self>
pub fn init_with_path(&self, path: &String) -> Option<Self>
Initialize with a path.
C++ equivalent: Bundle* init(const class String* pPath)
Sourcepub fn init_with_url(&self, url: &Url) -> Option<Self>
pub fn init_with_url(&self, url: &Url) -> Option<Self>
Initialize with a URL.
C++ equivalent: Bundle* init(const class URL* pURL)
Sourcepub fn is_loaded(&self) -> bool
pub fn is_loaded(&self) -> bool
Check if the bundle is loaded.
C++ equivalent: bool isLoaded() const
Sourcepub fn preflight_and_return_error(&self, error: *mut *mut Error) -> bool
pub fn preflight_and_return_error(&self, error: *mut *mut Error) -> bool
Preflight the bundle and return any error.
C++ equivalent: bool preflightAndReturnError(class Error** pError) const
Sourcepub fn load_and_return_error(&self, error: *mut *mut Error) -> bool
pub fn load_and_return_error(&self, error: *mut *mut Error) -> bool
Load the bundle and return any error.
C++ equivalent: bool loadAndReturnError(class Error** pError)
Sourcepub fn bundle_url(&self) -> *mut Url
pub fn bundle_url(&self) -> *mut Url
Get the bundle URL.
C++ equivalent: class URL* bundleURL() const
Sourcepub fn resource_url(&self) -> *mut Url
pub fn resource_url(&self) -> *mut Url
Get the resource URL.
C++ equivalent: class URL* resourceURL() const
Sourcepub fn executable_url(&self) -> *mut Url
pub fn executable_url(&self) -> *mut Url
Get the executable URL.
C++ equivalent: class URL* executableURL() const
Sourcepub fn url_for_auxiliary_executable(&self, name: &String) -> *mut Url
pub fn url_for_auxiliary_executable(&self, name: &String) -> *mut Url
Get the URL for an auxiliary executable.
C++ equivalent: class URL* URLForAuxiliaryExecutable(const class String* pExecutableName) const
Sourcepub fn private_frameworks_url(&self) -> *mut Url
pub fn private_frameworks_url(&self) -> *mut Url
Get the private frameworks URL.
Get the shared frameworks URL.
Get the shared support URL.
Sourcepub fn built_in_plug_ins_url(&self) -> *mut Url
pub fn built_in_plug_ins_url(&self) -> *mut Url
Get the built-in plug-ins URL.
Sourcepub fn app_store_receipt_url(&self) -> *mut Url
pub fn app_store_receipt_url(&self) -> *mut Url
Get the App Store receipt URL.
Sourcepub fn bundle_path(&self) -> *mut String
pub fn bundle_path(&self) -> *mut String
Get the bundle path.
C++ equivalent: class String* bundlePath() const
Sourcepub fn resource_path(&self) -> *mut String
pub fn resource_path(&self) -> *mut String
Get the resource path.
Sourcepub fn executable_path(&self) -> *mut String
pub fn executable_path(&self) -> *mut String
Get the executable path.
Sourcepub fn path_for_auxiliary_executable(&self, name: &String) -> *mut String
pub fn path_for_auxiliary_executable(&self, name: &String) -> *mut String
Get the path for an auxiliary executable.
Sourcepub fn private_frameworks_path(&self) -> *mut String
pub fn private_frameworks_path(&self) -> *mut String
Get the private frameworks path.
Get the shared frameworks path.
Get the shared support path.
Sourcepub fn built_in_plug_ins_path(&self) -> *mut String
pub fn built_in_plug_ins_path(&self) -> *mut String
Get the built-in plug-ins path.
Sourcepub fn bundle_identifier(&self) -> *mut String
pub fn bundle_identifier(&self) -> *mut String
Get the bundle identifier.
C++ equivalent: class String* bundleIdentifier() const
Sourcepub fn info_dictionary(&self) -> *mut Dictionary
pub fn info_dictionary(&self) -> *mut Dictionary
Get the info dictionary.
C++ equivalent: class Dictionary* infoDictionary() const
Sourcepub fn localized_info_dictionary(&self) -> *mut Dictionary
pub fn localized_info_dictionary(&self) -> *mut Dictionary
Get the localized info dictionary.
C++ equivalent: class Dictionary* localizedInfoDictionary() const
Sourcepub fn object_for_info_dictionary_key(&self, key: &String) -> *mut Object
pub fn object_for_info_dictionary_key(&self, key: &String) -> *mut Object
Get an object from the info dictionary.
C++ equivalent: class Object* objectForInfoDictionaryKey(const class String* pKey)