Hey there.
Sometimes while developing I stumble upon crashes (mostly self made by adressing methods wrong or something else) where the whole ui stops working with a crash log in the log view. I can fix all of them but I was wonduring if there is a way to catch those errors like with try/error for applescript to let the app continue its work.
Steven
In Long: What you’re looking for is exception handling and not error handling. In Objective-C you need to create the exception at compile time. This way the compiler create special routines so when an exception occurs the program can unwind the stack and continue executing. Error handling is at an much higher level and is not able to avoid crashing only responding to bad or unexpected results.
Thank you for both replies