foundation: add bundleIdentifier and resourcePath properties
Adds the bundleIdentifier and resourcePath properties to the NSBundle bindings
This commit is contained in:
@@ -1100,6 +1100,10 @@ pub trait NSBundle: Sized {
|
||||
name: id /* NSString */,
|
||||
owner: id,
|
||||
topLevelObjects: *mut id /* NSArray */) -> BOOL;
|
||||
|
||||
unsafe fn bundleIdentifier(self) -> id /* NSString */;
|
||||
|
||||
unsafe fn resourcePath(self) -> id /* NSString */;
|
||||
}
|
||||
|
||||
impl NSBundle for id {
|
||||
@@ -1115,6 +1119,14 @@ impl NSBundle for id {
|
||||
owner:owner
|
||||
topLevelObjects:topLevelObjects]
|
||||
}
|
||||
|
||||
unsafe fn bundleIdentifier(self) -> id /* NSString */ {
|
||||
msg_send![self, bundleIdentifier]
|
||||
}
|
||||
|
||||
unsafe fn resourcePath(self) -> id /* NSString */ {
|
||||
msg_send![self, resourcePath]
|
||||
}
|
||||
}
|
||||
|
||||
pub trait NSData: Sized {
|
||||
|
||||
Reference in New Issue
Block a user