• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa app is cancelling shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >cocoa app is cancelling shutdown (From: Elizabeth Kellner <email@hidden>)
 >Re: cocoa app is cancelling shutdown (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Array controllers in code?
  • Next by Date: loading French strings being in English language
  • Previous by thread: Re: cocoa app is cancelling shutdown
  • Next by thread: Re: cocoa app is cancelling shutdown
  • Index(es):
    • Date
    • Thread