diff --git a/cocoa/src/appkit.rs b/cocoa/src/appkit.rs index 36bd2634..9251c4e7 100644 --- a/cocoa/src/appkit.rs +++ b/cocoa/src/appkit.rs @@ -679,6 +679,16 @@ pub trait NSRunningApplication: Sized { runningApplicationWithProcessIdentifier: pid ] } + + unsafe fn runningApplicationsWithBundleIdentifier( + _: Self, + bundleIdentifier: id, /* NSString */ + ) -> id /* (NSArray *) */ { + msg_send![ + class!(NSRunningApplication), + runningApplicationsWithBundleIdentifier: bundleIdentifier + ] + } } impl NSRunningApplication for id {