INSBundle

Trait INSBundle 

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

Source

fn p_main_bundle() -> NSBundle

Returns the bundle object that contains the current executable.

Source

fn p_all_frameworks() -> NSArray<NSBundle>

Returns an array of all of the application’s bundles that represent frameworks.

Source

fn p_all_bundles() -> NSArray<NSBundle>

Returns an array of all the application’s non-framework bundles.

Source

fn p_resource_path(&self) -> NSString

The full pathname of the bundle’s subdirectory containing resources.

Source

fn p_executable_path(&self) -> NSString

The full pathname of the receiver’s executable file.

Source

fn p_bundle_path(&self) -> NSString

The full pathname of the receiver’s bundle directory.

Source

fn p_bundle_identifier(&self) -> NSString

The receiver’s bundle identifier.

Source

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.

Implementors§