Save Before Quit

Erick C's icon

Hello,

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

Thanks.

lewis lepton's icon

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
------
smokingbunny.co.uk

Luke Hall's icon

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

lh

Erick C's icon

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

lewis lepton's icon

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

happy maxing.

lewis edwards
------
smokingbunny.co.uk

Diane's icon

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!
-Diane