Re: Crash Reporter for Cocoa Application
Re: Crash Reporter for Cocoa Application
- Subject: Re: Crash Reporter for Cocoa Application
- From: John Stiles <email@hidden>
- Date: Mon, 12 Nov 2007 10:07:23 -0800
Yeah, you are going the long way around here. NSWorkspace -openFile:
is a one liner and will get rid of a lot of extra hassle for you.
On Nov 12, 2007, at 10:03 AM, Scott Ribe wrote:
There's no trick here. Just use Launch Services or NSWorkspace -
openFile: to launch the helper app, and it will be a child of the
window server. This has always been the right way to launch GUI app.
Fork/exec leave the app as a child of your app, causing lots of minor
issues.
I didn't know Launch Services would do that. I suppose it should
have been
obvious, but...
Anyway, I used NSTask. Until (around 10.4.10) it stopped working
with a
mysterious error message on some Macs but not others. I switched to
vfork/exec. But I only to launch a script which calls launchctl and
then
returns--so there is no process left as a child of my app.
I'll look at the other options next time I update anything about this.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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