Let's say I have foo_class that creates object [foo] and bar_class which creates object [bar].
I want the inlet of both to forward incoming messages to an object of type blah_class which serves as a proxy inlet. (The struct of foo and bar would store a pointer to it and control creation and freeing of it.)
Is there a way to specify this inside foo_new and bar_new, or is the easiest way to just use a class_addanything and forward messages that way?
-Jonathan
I think I answered my own question. It looks like I can use CLASS_NOINLET, then create an inlet explicitly inside the *_new function for my classes.
On Monday, April 21, 2014 4:49 PM, Jonathan Wilkes jancsika@yahoo.com wrote:
Let's say I have foo_class that creates object [foo] and bar_class which creates object [bar].
I want the inlet of both to forward incoming messages to an object of type blah_class which serves as a proxy inlet. (The struct of foo and bar would store a pointer to it and control creation and freeing of it.)
Is there a way to specify this inside foo_new and bar_new, or is the easiest way to just use a class_addanything and forward messages that way?
-Jonathan
That's right. I don't have any good examples of this but it should work fine.
cheers M
On Mon, Apr 21, 2014 at 02:02:15PM -0700, Jonathan Wilkes wrote:
I think I answered my own question. It looks like I can use CLASS_NOINLET, then create an inlet explicitly inside the *_new function for my classes.
On Monday, April 21, 2014 4:49 PM, Jonathan Wilkes jancsika@yahoo.com wrote:
Let's say I have foo_class that creates object [foo] and bar_class which creates object [bar].
I want the inlet of both to forward incoming messages to an object of type blah_class which serves as a proxy inlet. (The struct of foo and bar would store a pointer to it and control creation and freeing of it.)
Is there a way to specify this inside foo_new and bar_new, or is the easiest way to just use a class_addanything and forward messages that way?
-Jonathan
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list