Re: cocoa app is cancelling shutdown

2010-07-22 Thread Ken Thomases
On Jul 21, 2010, at 5:27 AM, Elizabeth Kellner wrote: > First is that app in question is a cocoa app that previously was a > command line app, and so it is *not* calling NSApplicationMain. It > starts its own run loop. Although I'm calling CFRunLoopRunInMode in > the loop, could there be some ot

Re: cocoa app is cancelling shutdown

2010-07-22 Thread Alastair Houghton
On 22 Jul 2010, at 05:30, Kyle Sluder wrote: > On Wed, Jul 21, 2010 at 3:27 AM, Elizabeth Kellner 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 i

Re: cocoa app is cancelling shutdown

2010-07-21 Thread Kyle Sluder
On Wed, Jul 21, 2010 at 3:27 AM, Elizabeth Kellner 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 ret

cocoa app is cancelling shutdown

2010-07-21 Thread Elizabeth Kellner
Hi, I have a cocoa app which is cancelling shutdown (message in german is "das Programm hat das Beenden abgebrochen"), and I don't know why. It also only happens sometimes. I am trying to shutdown with the applescript "tell application "System Events" to shut down", and I can't figure out what i