Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A_DEFER_LOW #43

Open
panaiotis opened this issue Jun 17, 2020 · 1 comment
Open

A_DEFER_LOW #43

panaiotis opened this issue Jun 17, 2020 · 1 comment

Comments

@panaiotis
Copy link

I'm trying to use A_DEFER_LOW in the class_addmethod declaration. This is how it is defied in the ext_mess.h file:
A_DEFER_LOW = 0x43, ///< A special signature for declaring methods. This is like A_GIMME, but the call is deferref [sic] to the back of the queue.

This is how I used it:
class_addmethod(p_iclass, (method) pFpu_msg_set_pos, "pos_", A_DEFER_LOW, 0);

This is how my function is prototyped:
void pFpu_msg_set_pos(pt_patch_mxa p_pmxa, t_symbol *s, long argc, t_atom *argv);

This is what I get when the "pos_" message is sent to the external, which is a UI object.
unknown message argument type
patchUtils: bad arguments for message "pos_"

What am I doing wrong? (I also tried A_DEFER with the same result.)
I tried fixing the misspelling of deferred (from deferref) but without change :)

@tap
Copy link
Contributor

tap commented Jun 17, 2020

Unfortunately, these are both available only for Jitter objects when using the classic Max SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants