foundation: add bundleIdentifier and resourcePath properties

Adds the bundleIdentifier and resourcePath properties to the NSBundle
bindings
This commit is contained in:
Ignacio Casal Quinteiro
2021-05-10 15:09:38 +02:00
parent 025dcb3c0d
commit 942e85ce41
+12
View File
@@ -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 {