I have some separate threads going in my application that need to be torn down correctly. IF the user selects the quit menu item in file menu I throw up an error that says... please stop the other things your are doing before quitting. However if the user quits the app from the app dock on the mac the app just quits and ends up crashing because the other threads are still trying to do their thing without being torn down correctly.
I tried -applicationShouldTerminate:
but it doesnt trigger in the case with the app dock quit method... if the document is dirty. IF the document is cleaned aka saved then my dialog pops up correctly.
SO I guess the real question is: how do I stop the 'do you want to save your document' query before we find that the document is still busy?
thanks