<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Is it possible to add a Quit Handler to an application?</title>
		<atom:link href="http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 00:53:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/#post-24566</guid>
					<title><![CDATA[Is it possible to add a Quit Handler to an application?]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/#post-24566</link>
					<pubDate>Wed, 22 Feb 2006 21:17:28 +0000</pubDate>
					<dc:creator>kawkhins</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I need to add a quit handler to perform some tasks before quitting.<br />
Tasks: ask the user for saving or not its data;</p>
<p>This cannot be done under closebang or notifydeleted, because:<br />
-if I open a window in the caller thread, max is then freezed<br />
-if I open a window in a thread, then the application is closed before I <br />
can do anything.</p>
<p>Do you have an idea of how to do this?</p>
<p>Thanks,<br />
Chris</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/#post-71279</guid>
					<title><![CDATA[Re: Is it possible to add a Quit Handler to an application?]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/#post-71279</link>
					<pubDate>Thu, 23 Feb 2006 01:39:26 +0000</pubDate>
					<dc:creator>topher lafata</dc:creator>

					<description>
						<![CDATA[
						<p>I think we would have to add something to the API in order to support  <br />
this.<br />
I think the C API supports adding quit tasks.<br />
I can&#8217;t think of a way around it either.<br />
Topher</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/#post-71280</guid>
					<title><![CDATA[Re: Is it possible to add a Quit Handler to an application?]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-add-a-quit-handler-to-an-application/#post-71280</link>
					<pubDate>Fri, 28 Jan 2011 21:41:47 +0000</pubDate>
					<dc:creator>Diane</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
I&#8217;m trying to do something very similar in my standalone app &#8211; 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&#8230; 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 &#8211; I don&#8217;t need to open any windows, nothing fancy &#8211; just need to delay quitting long enough for a couple bangs to get through. Any help very appreciated, thanks so much.<br />
-Diane<br />
PS I&#8217;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.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

