<?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: Function copy/paste</title>
		<atom:link href="http://cycling74.com/forums/topic/function-copypaste/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/function-copypaste/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 18:18:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/function-copypaste/#post-50186</guid>
					<title><![CDATA[Function copy/paste]]></title>
					<link>http://cycling74.com/forums/topic/function-copypaste/#post-50186</link>
					<pubDate>Tue, 04 May 2010 20:22:00 +0000</pubDate>
					<dc:creator>John MacCallum</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I noticed that when you copy and paste an object like the function object, the contents of the old object appear in the new one.  I was wondering if someone could tell me how to make a custom gui object behave that way&#8211;it&#8217;s a really nice behavior.</p>
<p>Thanks in advance,<br />
JM</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/function-copypaste/#post-180140</guid>
					<title><![CDATA[Re: Function copy/paste]]></title>
					<link>http://cycling74.com/forums/topic/function-copypaste/#post-180140</link>
					<pubDate>Tue, 04 May 2010 23:51:56 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>Hey John,</p>
<p>your object needs to implement a <code>jsave</code> method.</p>
<p><code>class_addmethod(c, (method)yourobject_jsave, "jsave", A_CANT, 0);</code></p>
<p>The method will receive the object dictionary as argument, so you just need to add whatever you want to it:</p>
<p><code>void yourobject_jsave(t_yourobject *x, t_dictionary *d)<br />
{<br />
dictionary_appendlong(d, gensym("hey"), 74);<br />
//...<br />
}<br /></code></p>
<p>This means that the object should implements the hey message, and it will be called when the object is instantiated.</p>
<p>forum coding&#8230;<br />
Cheers,<br />
ej</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

