Hi,
I use asserts quite a bit in my code since they are useful in debugging, but the standard behaviour of Cocoa applications is to interrupt processing and logging the assertion failure to the console.. the UI stays up neither crashing, nor bringing up an error dialog and it's often not obvious what has happened.
What's the easiest way of either crashing the program (at least then you get a trace) or bringing up an error dialog?
Do I need to supply an assertion handler (that looks very complicated!)? or can I catch exceptions in the run loop are something?
Is there any example code available anywhere on how to best do this?
Thanks for your help.