Ok so I'm running a command-line app through NSTask, and sometimes it crashes. This is fine. The problem is that when it crashes, the user sees the "unexpectedly quit" dialog. Aside from this being undesirable, I want to be able to run the NSTask dozens of times, crashing on many of them, and I don't want to have to click through dozens of dialogs. So how do I solve this? This didn't used to happen, the last time I worked on my program 4 years ago (I think it might be an OS 10.5 "improvement" or something, although maybe the command-line app just used to not crash, I don't know).
I'm guessing it has something to do with [NSTask setEnvironment], but I don't know what values to set. Can anyone assist? Thanks