Save Before Quit

Jul 5, 2010 at 2:31pm

Save Before Quit


I Would Like To Know if it Is Possible In Max 5 To Implement Save Before Quit In My Application,
Like Any Normal Application?


Jul 5, 2010 at 3:37pm

you can have some ‘sort of’ save as… in a max patch/collective/application.
if your using [autopattr] and [pattrstorage], for your preset saving. it always [unless you have saved before exiting] asks for you to save your settings, either in XML or ‘the other format which i can not remember’ when you exit the program.

hope that helps, there are a few helpful patches with the preset saving method using [autopattr] and [pattrstorage] posted around this forum or even in the cycling tutorials.

lewis edwards

Jul 5, 2010 at 11:46pm

The [closebang] object is another way to trigger an action when you shut a patch.


Jul 6, 2010 at 9:28pm

Hey guys, hows it going i’d just like to thank both of you guys with the help on my search, think I found it

Jul 7, 2010 at 6:13am

no worries man, its always a pleasure to help people with their queries.

happy maxing.

lewis edwards

Jan 28, 2011 at 9:54pm

Hi guys,
I’m having problems trying to do a similar thing. When a user quits my app (standalone runtime on both Mac and Windows) I just need to delay quitting long enough to bang a couple of messages to be sent out to a hardware unit so that it functions correctly without the application running. However, closebang did not do the job in time I assume because it had no effect. I thought about using the key object and looking for Command Q, but then I would have to account for the user manually selecting quit from the menu and I can’t find any mention of this in menubar helpfile. Any help is very appreciated, thanks!


You must be logged in to reply to this topic.