Save Before Quit

Jul 5, 2010 at 2:31pm

Save Before Quit

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.

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

#183726
Jul 5, 2010 at 11:46pm

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

lh

#183727
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

#183728
Jul 7, 2010 at 6:13am

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

happy maxing.

lewis edwards
——
smokingbunny.co.uk

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

#183730

You must be logged in to reply to this topic.