I want to be able to create a new instance of a class as described in
the newinstance() method in WritingExternals.pdf. I want this instance
not to be present as an object box but instead being created by another
external. Once created I want to bind it to a symbol (s->s-thing) and be
able to send typedmess messages to it.
Basically I want to do something similar to how a Max wrapper exists for
Jitter objects, but my external will not have attributes or in other
ways be jitter-related.
Apart from the jitter SDK the only example I can find in the SDK is how
xcoll is created inside coll. I have tried creating the wrapped object
using newinstance(), but didn't get it to work. I then tried using a
similar instantiation approach to xcoll. It seems that I am able to
create the instance, but I'm not able to communicate with it.
Any cues to how to instantiate the wrapped object, how to create an
instance of it as part of the wrapper_new method and how to call it
using typedmess would be appreciated.
The current version of the code (with heaps of post statements for
debugging) can be found
here (jmod.receive is the wrapping object):
and here (jmod.bindlist is the object being wrapped):
Thanks a lot,