Skip to content

Commit 02df070

Browse files
committed
cocoa: Add NSRunningApplication.runningApplicationsWithBundleIdentifier
Signed-off-by: Ethan Uppal <[email protected]>
1 parent d7202b3 commit 02df070

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cocoa/src/appkit.rs

+10
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,16 @@ pub trait NSRunningApplication: Sized {
679679
runningApplicationWithProcessIdentifier: pid
680680
]
681681
}
682+
683+
unsafe fn runningApplicationsWithBundleIdentifier(
684+
_: Self,
685+
bundleIdentifier: id, /* NSString */
686+
) -> id /* (NSArray<NSRunningApplication> *) */ {
687+
msg_send![
688+
class!(NSRunningApplication),
689+
runningApplicationsWithBundleIdentifier: bundleIdentifier
690+
]
691+
}
682692
}
683693

684694
impl NSRunningApplication for id {

0 commit comments

Comments
 (0)