hi just wondering how I could send a bang to an object with [pyext] ? I tryed: self._send(rcvname, "bang") but of course I get the error 'No method for symbol' because my object receives the *string* "bang" is there any workaround for this ?
what I try to achieve is get the current value of this object, so I thought about binding it and sending it a bang. maybe there is a way to retrieve the current value of this object directly with some method I overlooked ? like: self._receive(sndname) that would be nice =)
cheers, _y
On 3/11/11, Yvan Volochine yvan.pd@gmail.com wrote:
hi just wondering how I could send a bang to an object with [pyext] ? I tryed: self._send(rcvname, "bang") but of course I get the error 'No method for symbol' because my object receives the *string* "bang" is there any workaround for this ?
Thomas kindly stated that the trick is to call the method without further arguments: self._send(rcvname)
detailed story: http://grrrr.org/pipermail/ext/2011-March/000037.html
cheers, _y
Hi all,
Thomas kindly stated that the trick is to call the method without further arguments: self._send(rcvname)
actually my statement is only half true:
self._send(rcvname) currently sends an empty list message to the rcvname receiver which is often interpreted but need not always be
the correct way would be self._send(rcvname,"bang",()) which is equivalent to a message with selector bang and no further arguments (empty tuple)
since the former notation self._send(rcvname) is also used with pyext outlets as self._outlet(outletnum) to send a bang, i corrected the behavior in the py/pyext SVN to indeed send a bang. However, this is not yet reflected in the binaries in circulation
gr~~~
Am 12.03.2011 um 21:11 schrieb Thomas Grill:
Hi all,
Thomas kindly stated that the trick is to call the method without further arguments: self._send(rcvname)
actually my statement is only half true:
self._send(rcvname) currently sends an empty list message to the rcvname receiver which is often interpreted but need not always be
sorry, there's something missing: ... which is often interpreted as a bang message, that is.
On Sat, Mar 12, 2011 at 9:11 PM, Thomas Grill gr@grrrr.org wrote:
self._send(rcvname) currently sends an empty list message to the rcvname receiver which is often interpreted but need not always be
the correct way would be self._send(rcvname,"bang",()) which is equivalent to a message with selector bang and no further arguments (empty tuple)
since the former notation self._send(rcvname) is also used with pyext outlets as self._outlet(outletnum) to send a bang, i corrected the behavior in the py/pyext SVN to indeed send a bang. However, this is not yet reflected in the binaries in circulation
hi Thomas,
latest svn and self._send(rcvname) does not work with [nbx] but self._send(rcvname, "bang", ()) does the trick and solves the [nbx] issue at the same time =)
thanks ! _y