I need to add a quit handler to perform some tasks before quitting.
Tasks: ask the user for saving or not its data;
This cannot be done under closebang or notifydeleted, because:
-if I open a window in the caller thread, max is then freezed
-if I open a window in a thread, then the application is closed before I
can do anything.
Do you have an idea of how to do this?
I think we would have to add something to the API in order to support
I think the C API supports adding quit tasks.
I can’t think of a way around it either.
I’m trying to do something very similar in my standalone app – there are a couple of things that need to be reset when a user quits the app. I have tried using closebang, but no luck, then I found this post… is it possible to write a quit handler in Max 5? Basically I just need to bang a couple messages out to a hardware unit so that it functions correctly without my app open – I don’t need to open any windows, nothing fancy – just need to delay quitting long enough for a couple bangs to get through. Any help very appreciated, thanks so much.
PS I’m on a Mac, but also trying to make this app work on both Mac and Windows, so is there a way to accomplish this for both platforms? Thanks again.
C74 RSS Feed | © Copyright Cycling '74