<?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 read the varname of an object that sends a message to a js object</title>
		<atom:link href="http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 13:42:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-44398</guid>
					<title><![CDATA[is it possible to read the varname of an object that sends a message to a js object]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-44398</link>
					<pubDate>Tue, 16 Jun 2009 20:01:19 +0000</pubDate>
					<dc:creator>Jan</dc:creator>

					<description>
						<![CDATA[
						<p>the title is my question <img src="images/smiley_icons/icon_smile.gif" border=0 alt="Smile"/><br />
i started to post this question in the general forum &#8211; but i think it belongs to this one.</p>
<p>i attached a patch to illustrate what i mean. in the original scripts i have a huge amount of ubuttons, that dynamically connect to other object. is it possible for a js (or any other object)which object is sending a message?</p>
<p>thanks for any reply!</p>
<p>j</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159721</guid>
					<title><![CDATA[Re: is it possible to read the varname of an object that sends a message to a js object]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159721</link>
					<pubDate>Tue, 16 Jun 2009 22:59:24 +0000</pubDate>
					<dc:creator>Jan</dc:creator>

					<description>
						<![CDATA[
						<p>meanwhile i found a solution for my patch: if i use the jsui instead of the ubuttons.<br />
 but nevertheless i think it is an interesting question as this seems to be a very basic information max needs to generate in order to make a patch run.<br />
but is this information via api accessible?</p>
<p>so still happy for suggestions. <img src="images/smiley_icons/icon_smile.gif" border=0 alt="Smile"/></p>
<p>j</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159722</guid>
					<title><![CDATA[Re: is it possible to read the varname of an object that sends a message to a js object]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159722</link>
					<pubDate>Wed, 17 Jun 2009 10:09:25 +0000</pubDate>
					<dc:creator>nicolas danet</dc:creator>

					<description>
						<![CDATA[
						<p>Hello,</p>
<p>i havn&#8217;t find an easy way to do it (with javascript), but a roundabout : yes ! <img src="images/smiley_icons/icon_wink.gif" border=0 alt="Wink"/></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159723</guid>
					<title><![CDATA[Re: is it possible to read the varname of an object that sends a message to a js object]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159723</link>
					<pubDate>Wed, 17 Jun 2009 11:49:03 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>Thats clever, I would never have thought of using the &#8220;ignoreclick&#8221; property! Here&#8217;s a modification that checks the varname attribute using a regular expression. This means that including another [button] in your patch that is click enabled (with or without a scripting name) will not break the result.</p>
<p>lh</p>
<p><div class="pre"></div></p>
<pre>var result;
var pattern = /^b[d+]$/;

function bang() {
    post ("go!n");
}

function whois() {
    result = "no";
    this.patcher.apply (find_bang);
    outlet (0, result);
}

function find_bang(a) {
    if (a.maxclass == "button" &#038;&#038; !a.ignoreclick &#038;&#038; pattern.test(a.varname)) {
        result = a.varname ;
    }
    return true;
}</pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159724</guid>
					<title><![CDATA[Re: is it possible to read the varname of an object that sends a message to a js object]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159724</link>
					<pubDate>Wed, 17 Jun 2009 16:20:48 +0000</pubDate>
					<dc:creator>nicolas danet</dc:creator>

					<description>
						<![CDATA[
						<p>Hello maxers,</p>
<p>nice add, therishopeforus ;<br />
to be honest, i wanted to use &#8220;color&#8221; property of object, but i didn&#8217;t found how to. Anyway, the best way to do the job is to read the number in the box, isn&#8217;t it ?! </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159725</guid>
					<title><![CDATA[Re: is it possible to read the varname of an object that sends a message to a js object]]></title>
					<link>http://cycling74.com/forums/topic/is-it-possible-to-read-the-varname-of-an-object-that-sends-a-message-to-a-js-object/#post-159725</link>
					<pubDate>Wed, 17 Jun 2009 22:59:29 +0000</pubDate>
					<dc:creator>Jan</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for all your contributions!</p>
<p>j</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

