Re: cocoa app is cancelling shutdown
Re: cocoa app is cancelling shutdown
- Subject: Re: cocoa app is cancelling shutdown
- From: Alastair Houghton <email@hidden>
- Date: Thu, 22 Jul 2010 10:12:21 +0100
On 22 Jul 2010, at 05:30, Kyle Sluder wrote:
> On Wed, Jul 21, 2010 at 3:27 AM, Elizabeth Kellner <email@hidden> wrote:
>> Second is that this app is being launched programmatically from
>> another app, using [NSTask launchedTaskWithLaunchPath:arguments:]. If
>> I launch the app directly, it does not seem to impede shutdown. Is
>> there somehow a way for a retained subprocess to cause a shutdown to
>> abort?
>
> You should be using Launch Services to launch applications. See the
> documentation for LSOpenApplication.
In most cases you can use NSWorkspace (e.g. via -launchApplication:), which is simpler.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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