You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the behavior of max_jit_class_wrap_addmethods()?
Can I call it multiple times with no harm?
My need is to add methods to a jitter object that is exposed to Max via a max wrapper object. And these methods are to be added after the call to max_jit_class_wrap_standard()
Trial/error/reading header files I found max_jit_class_wrap_addmethods() and it seems to do what I want. Though I am unclear as to its full behavior and if there are negative sideaffects if called multiple times; once after each time I add a method to the jitter class.
Is there a API to cause the max wrapper to see this single new jitter method without (re)parsing all methods in bulk as I'm guessing max_jit_class_wrap_addmethods() does?
After this example is clarified, would be good to add documentation for this function and the others in related doc issues #20
The text was updated successfully, but these errors were encountered:
hey Dale, this function simply iterates the messages and attributes stored in the jitter class, and adds Jitter wrapper functions for each of them (e.g. defer and usurp specific handlers).
there should be no issue calling this multiple times, each subsequent call should simply overwrite any previous calls. I believe all your assumptions are correct and this is the way to add a method post max_jit_class_wrap_standard() call.
For other readers...due to inter-dependent complexities and some features not exposed via customer APIs of very low-level Max behavior I need, I chose to stop using the max_jit_class_wrap_addmethods() API.
Instead, I use the more typical and well-tested pattern of...
class_new()
max_jit_class_obex_setup()
max_jit_class_mop_wrap()
// custom methods here with max_jit_class_addmethod_xxxx(), jit_class_addmethod(), class_addmethod(), etc.max_jit_class_wrap_standard()
class_register()
What is the behavior of
max_jit_class_wrap_addmethods()
?Can I call it multiple times with no harm?
My need is to add methods to a jitter object that is exposed to Max via a max wrapper object. And these methods are to be added after the call to
max_jit_class_wrap_standard()
Trial/error/reading header files I found
max_jit_class_wrap_addmethods()
and it seems to do what I want. Though I am unclear as to its full behavior and if there are negative sideaffects if called multiple times; once after each time I add a method to the jitter class.Is there a API to cause the max wrapper to see this single new jitter method without (re)parsing all methods in bulk as I'm guessing
max_jit_class_wrap_addmethods()
does?After this example is clarified, would be good to add documentation for this function and the others in related doc issues #20
The text was updated successfully, but these errors were encountered: