I was using an app the other day that crashed, but as it crashed also asked to send an email with the crash info.
Does anyone know how this is done?
Perhaps it w
PLCrashReporter attempts to provide a framework to do exactly this. Not used it myself yet but considering it.
There seems to be this hook available just before the app shuts down:
NSSetUncaughtExceptionHandler()
Sets the top-level error-handling function where you can perform last-minute logging before the program terminates.
You basically wrap your entire application in a try/catch and if you catch an error you can offer to phone home with the details.