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 09:52:30 -0800
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.
On Nov 11, 2007, at 9:07 PM, Scott Ribe wrote:
Another way to do it is to have a helper application polling to
check for a
new crash report, and send it as soon as it happens. The trick is
to get
that helper application running, because if you just launch it from
your
main application, then it is a child of your main application, so
as soon as
your main application crashes the child is terminated. The trick to
making
it work is to have your main application use launchctl to launch
the helper.
Sneaky, but it works. For most apps it may be overkill. But for a
custom
application where you want to provide a very high level of support,
it's
great. An app crashes, I get page within a minute. Even more so, my
helper
app monitors my app's own log looking for reports of internal error
conditions.
--
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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