From 02df070d85c5e758f289f0333a977b01bdad3e4d Mon Sep 17 00:00:00 2001 From: Ethan Uppal <113849268+ethanuppal@users.noreply.github.com> Date: Fri, 21 Mar 2025 20:34:53 -0400 Subject: [PATCH] cocoa: Add NSRunningApplication.runningApplicationsWithBundleIdentifier Signed-off-by: Ethan Uppal <113849268+ethanuppal@users.noreply.github.com> --- cocoa/src/appkit.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 {