Re: Quit helper app when main app terminates
Re: Quit helper app when main app terminates
- Subject: Re: Quit helper app when main app terminates
- From: Sean McBride <email@hidden>
- Date: Thu, 12 Jul 2012 15:50:41 -0400
- Organization: Rogue Research Inc.
On Thu, 12 Jul 2012 10:54:13 -0700, Mark Munz said:
>If you're on 10.6 or later:
>
>- (void)applicationWillTerminate:(NSNotification *)aNotification
>{
> NSRunningApplication* helperApp = [NSRunningApplication
>runningApplicationsWithBundleIdentifier:@"bundle.id"];
> [helperApp terminate];
>}
Although rare, it is possible to have more than one app with the same bundle id running at the same time.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden