pub trait INSBundle: PNSObject {
// Provided methods
fn p_main_bundle() -> NSBundle { ... }
fn p_all_frameworks() -> NSArray<NSBundle> { ... }
fn p_all_bundles() -> NSArray<NSBundle> { ... }
fn p_resource_path(&self) -> NSString { ... }
fn p_executable_path(&self) -> NSString { ... }
fn p_bundle_path(&self) -> NSString { ... }
fn p_bundle_identifier(&self) -> NSString { ... }
fn p_info_dictionary(&self) -> NSDictionary<NSString, id> { ... }
}Expand description
A trait containing all the methods for NSBundle
Provided Methods§
Sourcefn p_main_bundle() -> NSBundle
fn p_main_bundle() -> NSBundle
Returns the bundle object that contains the current executable.
Sourcefn p_all_frameworks() -> NSArray<NSBundle>
fn p_all_frameworks() -> NSArray<NSBundle>
Returns an array of all of the application’s bundles that represent frameworks.
Sourcefn p_all_bundles() -> NSArray<NSBundle>
fn p_all_bundles() -> NSArray<NSBundle>
Returns an array of all the application’s non-framework bundles.
Sourcefn p_resource_path(&self) -> NSString
fn p_resource_path(&self) -> NSString
The full pathname of the bundle’s subdirectory containing resources.
Sourcefn p_executable_path(&self) -> NSString
fn p_executable_path(&self) -> NSString
The full pathname of the receiver’s executable file.
Sourcefn p_bundle_path(&self) -> NSString
fn p_bundle_path(&self) -> NSString
The full pathname of the receiver’s bundle directory.
Sourcefn p_bundle_identifier(&self) -> NSString
fn p_bundle_identifier(&self) -> NSString
The receiver’s bundle identifier.
Sourcefn p_info_dictionary(&self) -> NSDictionary<NSString, id>
fn p_info_dictionary(&self) -> NSDictionary<NSString, id>
A dictionary, constructed from the bundle’s Info.plist file, that contains information about the receiver.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.