Re: Crash Reporter for Cocoa Application
Re: Crash Reporter for Cocoa Application
- Subject: Re: Crash Reporter for Cocoa Application
- From: Nicko van Someren <email@hidden>
- Date: Fri, 16 Nov 2007 15:20:16 +0000
On 12 Nov 2007, at 05:07, 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.
Polling the crash report file is both wasteful and unnecessary when
you have kernel events, and launchd already provides a mechanism for
firing off a program when a file changes. See my posting on this same
subject from a year and a half ago:
http://lists.apple.com/archives/Cocoa-dev/2006/Feb/msg00586.html
Nicko
_______________________________________________
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