typedmess --- mess0, mess1, mess2 --- s->s_thing
Luigi Castelli
Jul 20 2007 | 6:07 pm
Hi there,
can someone shed some light on the typedmess function and the messN
macros ? mess0, mess1, mess2, etc... seem to be wrappers for the getfn
functions to send untyped messages to objects.
1 - Can someone provide an example on how to use mess1 for instance ?
my confusion lies in the fact that even though the SDK says th messN
macros are to be used for untyped messages they do work for typed
messages as well. Why the distinction then ?
2 - In connection to those I am also confused about the usage of the
s_thing field in the t_symbol data structure. It seems that the s_thing
is used to indicate to which object the message is supposed to be sent
to. However I don't quite understand how the binding mechanism works.
3 - In my specific case I would like to send the 'size' message to an
existing buffer~ object from my own custom external.
I would appreciate it if someone would explain the following line of
code taken from index~.c
if ((b = (t_buffer *)(s->s_thing)) && ob_sym(b) == ps_buffer) {
x->l_buf = b;
}
Is that the correct way to go to send the 'size' message to buffer~
(the 'size' message takes 1 argument) ?
Should I use typedmess or messN ? Any checks I need to do ?
Thanks for any knowledge you guys are able to provide.
- Luigi
------------------------------------------------------------
THIS E-MAIL MESSAGE IS FOR THE SOLE USE OF THE INTENDED RECIPIENT AND MAY CONTAIN CONFIDENTIAL AND/OR PRIVILEGED INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT, CONTACT THE SENDER BY E-MAIL AT SUPERBIGIO@YAHOO.COM AND DESTROY ALL COPIES OF THE ORIGINAL MESSAGE. WITHOUT PREJUDICE UCC1-207.
------------------------------------------------------------
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/