<?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: jsui + pattr = strangeness&#8230;</title>
		<atom:link href="http://cycling74.com/forums/topic/jsui-pattr-strangeness/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 21:17:29 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-32219</guid>
					<title><![CDATA[jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-32219</link>
					<pubDate>Thu, 31 May 2007 23:52:19 +0000</pubDate>
					<dc:creator>Anthony Palomba</dc:creator>

					<description>
						<![CDATA[
						<p>I have a simple patcher example that binds a jsui label to <br />
a pattr and then tries to set its text. I see no bind error messages.<br />
But for some reason it will not do it. Can someone explain what <br />
might be the problem&#8230;</p>
<p>Thanks,<br />
Anthony</p>
<p>
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#N vpatcher 531 409 1131 809;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P message 197 64 40 9109513 text bar;<br />
#P newex 197 88 125 9109513 pattr @bindto parent::lblTitle;<br />
#P objectname u478000001;<br />
#P connect 1 0 0 0;<br />
#P pop 1;<br />
#P newobj 231 107 66 9109513 p inside_here;<br />
#P objectname inside_here;<br />
#P user jsui 87 56 358 27 1 0 0 jsui_roundedlabel.js foo;<br />
#P objectname lblTitle;<br />
#P window clipboard copycount 2;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105602</guid>
					<title><![CDATA[Re: jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105602</link>
					<pubDate>Fri, 01 Jun 2007 08:43:36 +0000</pubDate>
					<dc:creator>Mattijs</dc:creator>

					<description>
						<![CDATA[
						<p>This is not the way pattr works. You can&#8217;t use pattr to send any message to an object, only set its value. Not all objects support binding. This jsui doesn&#8217;t, but it will if you define a set/getvalueof() method. That way you could set the label text with pattr.</p>
<p>In this case, I too would expect an error message when binding the pattr to the jsui (because the jsui doesn&#8217;t support pattr bindings).</p>
<p>Mattijs</p>
<p>Quote: Anthony Palomba wrote on Fri, 01 June 2007 01:52<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> I have a simple patcher example that binds a jsui label to <br />
> a pattr and then tries to set its text. I see no bind error messages.<br />
> But for some reason it will not do it. Can someone explain what <br />
> might be the problem&#8230;<br />
> <br />
> <br />
> <br />
> Thanks,<br />
> Anthony<br />
> <br />
> <br />
> #P window setfont &#8220;Sans Serif&#8221; 9.;<br />
> #P window linecount 1;<br />
> #N vpatcher 531 409 1131 809;<br />
> #P window setfont &#8220;Sans Serif&#8221; 9.;<br />
> #P message 197 64 40 9109513 text bar;<br />
> #P newex 197 88 125 9109513 pattr @bindto parent::lblTitle;<br />
> #P objectname u478000001;<br />
> #P connect 1 0 0 0;<br />
> #P pop 1;<br />
> #P newobj 231 107 66 9109513 p inside_here;<br />
> #P objectname inside_here;<br />
> #P user jsui 87 56 358 27 1 0 0 jsui_roundedlabel.js foo;<br />
> #P objectname lblTitle;<br />
> #P window clipboard copycount 2;<br />
> <br />
> <br />
> <br />
> <br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105603</guid>
					<title><![CDATA[Re: jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105603</link>
					<pubDate>Fri, 01 Jun 2007 09:04:17 +0000</pubDate>
					<dc:creator>Jeremy Bernstein</dc:creator>

					<description>
						<![CDATA[
						<p>jsui_roundedlabel.js doesn&#8217;t have getvalueof() or setvalueof()  <br />
methods (check out the pattr sdk in the general Max SDK for more  <br />
info). You are trying to send an arbitrary message to the object, in  <br />
any case, so why not use pattrforward. That&#8217;s what it&#8217;s for:</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#N vpatcher 531 409 1131 809;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P message 250 58 46 196617 text foo;<br />
#P message 194 59 47 196617 text bar;<br />
#P newex 197 88 142 196617 pattrforward parent::lblTitle;<br />
#P objectname u296000001;<br />
#P connect 2 0 0 0;<br />
#P connect 1 0 0 0;<br />
#P pop 1;<br />
#P newobj 291 167 66 196617 p inside_here;<br />
#P objectname inside_here;<br />
#P user jsui 147 116 358 27 1 0 0 jsui_roundedlabel.js foo;<br />
#P objectname lblTitle;<br />
#P window clipboard copycount 2;</p>
<p>Am 01.06.2007 um 01:52 schrieb Anthony Palomba:</p>
<p>> I have a simple patcher example that binds a jsui label to<br />
> a pattr and then tries to set its text. I see no bind error messages.<br />
> But for some reason it will not do it. Can someone explain what<br />
> might be the problem&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105604</guid>
					<title><![CDATA[Re: jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105604</link>
					<pubDate>Fri, 01 Jun 2007 09:13:50 +0000</pubDate>
					<dc:creator>Jeremy Bernstein</dc:creator>

					<description>
						<![CDATA[
						<p>Because the jsui object itself DOES support pattr bindings, and  <br />
because pattr is dumb as a rock, the binding functions. If the script  <br />
in the jsui were swapped out for a script which did support get/ <br />
setvalueof, everything would work swimmingly.</p>
<p>I am not in favor of an error message in this case. If you&#8217;re smart  <br />
enough to use javascript, you&#8217;re smart enough to read the pattr SDK  <br />
and troubleshoot the missing get/setvalueofness. ;)</p>
<p>jb</p>
<p>Am 01.06.2007 um 10:43 schrieb Mattijs Kneppers:</p>
<p>> In this case, I too would expect an error message when binding the  <br />
> pattr to the jsui (because the jsui doesn&#8217;t support pattr bindings).</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105605</guid>
					<title><![CDATA[Re: jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105605</link>
					<pubDate>Fri, 01 Jun 2007 09:26:33 +0000</pubDate>
					<dc:creator>Mattijs</dc:creator>

					<description>
						<![CDATA[
						<p>Honestly, I don&#8217;t think it is harmful to anyone to throw an error if there is no set/getvalueof in the js when pattr sends it something..</p>
<p>Error messages are not only for dumb people but also a tool to speed up the work of smart people ;)</p>
<p>Mattijs</p>
<p>Quote: Jeremy Bernstein wrote on Fri, 01 June 2007 11:13<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Because the jsui object itself DOES support pattr bindings, and  <br />
> because pattr is dumb as a rock, the binding functions. If the script  <br />
> in the jsui were swapped out for a script which did support get/ <br />
> setvalueof, everything would work swimmingly.<br />
> <br />
> I am not in favor of an error message in this case. If you&#8217;re smart  <br />
> enough to use javascript, you&#8217;re smart enough to read the pattr SDK  <br />
> and troubleshoot the missing get/setvalueofness. ;)<br />
> <br />
> jb<br />
> <br />
> Am 01.06.2007 um 10:43 schrieb Mattijs Kneppers:<br />
> <br />
> > In this case, I too would expect an error message when binding the  <br />
> > pattr to the jsui (because the jsui doesn&#8217;t support pattr bindings).<br />
> <br />
> <br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105606</guid>
					<title><![CDATA[Re: jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105606</link>
					<pubDate>Fri, 01 Jun 2007 09:38:42 +0000</pubDate>
					<dc:creator>Jeremy Bernstein</dc:creator>

					<description>
						<![CDATA[
						<p>Let me put it another way: it&#8217;s not going to change. It&#8217;s too much  <br />
extra work to support one object which functions in a special way  <br />
(scripts within objects which may or may not support certain  <br />
methods). At such time that we have a language-binding API and  <br />
support this sort of stuff on a general level, I&#8217;d be willing to add  <br />
the extra check, but pattr has enough to do already.</p>
<p>jb</p>
<p>Am 01.06.2007 um 11:26 schrieb Mattijs Kneppers:</p>
<p>><br />
> Honestly, I don&#8217;t think it is harmful to anyone to throw an error  <br />
> if there is no set/getvalueof in the js when pattr sends it  <br />
> something..<br />
><br />
> Error messages are not only for dumb people but also a tool to  <br />
> speed up the work of smart people ;)<br />
><br />
> Mattijs</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105607</guid>
					<title><![CDATA[Re: jsui + pattr = strangeness&#8230;]]></title>
					<link>http://cycling74.com/forums/topic/jsui-pattr-strangeness/#post-105607</link>
					<pubDate>Fri, 01 Jun 2007 09:43:02 +0000</pubDate>
					<dc:creator>Mattijs</dc:creator>

					<description>
						<![CDATA[
						<p>Quote: Jeremy Bernstein wrote on Fri, 01 June 2007 11:38<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
> Let me put it another way: it&#8217;s not going to change. It&#8217;s too much  <br />
> extra work to support one object which functions in a special way  <br />
> (scripts within objects which may or may not support certain  <br />
> methods). At such time that we have a language-binding API and  <br />
> support this sort of stuff on a general level, I&#8217;d be willing to add  <br />
> the extra check, but pattr has enough to do already.</p>
<p>Ah, of course. I was just being theoretical there. I agree that the priority isn&#8217;t very high.</p>
<p>Mattijs</p>
<p>> <br />
> jb<br />
> <br />
> Am 01.06.2007 um 11:26 schrieb Mattijs Kneppers:<br />
> <br />
> ><br />
> > Honestly, I don&#8217;t think it is harmful to anyone to throw an error  <br />
> > if there is no set/getvalueof in the js when pattr sends it  <br />
> > something..<br />
> ><br />
> > Error messages are not only for dumb people but also a tool to  <br />
> > speed up the work of smart people ;)<br />
> ><br />
> > Mattijs<br />
> <br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

