(These questions might keep coming. looks like I'll be a noob for a minute.)
I'm instantiating abstractions with the included code. I'm looking to create a static object that lets you access a single abstraction from a number of named objects. (similar to buffer~ or coll.) I'm thinking this could make the oo.* objects very useful.
my tasks are
A) counting the inlets and outlets so that I can give the wrapper object the same number of inlets and outlets. (I know this is stored in t_object but it's "subject to change")
B) sending incoming messages to specific inlets in the abstraction
C) listening to specific outlets of the abstraction
I've figured out how to make a centralized struct that's shared amongst objects. And I stole the following code from the scriptto example. But I'm unsure where to look in the documentation for the rest of this information
Any fingers pointing in the right direction would be much appreciated.
t_dictionary *d = dictionary_new();
long ac = 0;
t_atom *av = NULL;
// create a patcher without scroll bars and a toolbar
sprintf(parsebuf,"@defrect 0 0 300 400 @title scripto @enablehscroll 0 @enablevscroll 0 @presentation 0 @toolbarid """);
myData->s_patcher=(t_object *)object_new_typed(CLASS_NOBOX,atom_getsym(argv+1),1, &a);
freeobject((t_object *)d); // we created this dictionary and we don't need it anymore
object_attach_byptr_register(x, myData->s_patcher, CLASS_NOBOX);// attach our UI object to us