Using hiddenconnect in max-sdk

nini's icon

Hi all! I’m fairly new to development with C and max-sdk, but I’m wondering if I’ve encountered a bug while trying to connect two objects with a hidden patchcord.

This is possible in the JS API with patcher.hiddenconnect(), but when I try the analog to that in max-sdk I get a console error: patcher: doesn't understand "hiddenconnect".

Here’s what does work:

// Snippet
t_atom msg[4];
atom_setobj(&msg[0], ps_box);
atom_setlong(&msg[1], 0);
atom_setobj(&msg[2], my_box);
atom_setlong(&msg[3], 1);
object_method_typed(patcher, gensym("connect"), 4, msg, NULL);

however when switching over to hiddenconnect like this, the error gets generated.

// Snippet
t_atom msg[4];
atom_setobj(&msg[0], ps_box);
atom_setlong(&msg[1], 0);
atom_setobj(&msg[2], my_box);
atom_setlong(&msg[3], 1);
object_method_typed(patcher, gensym("hiddenconnect"), 4, msg, NULL);

You can find the symbol referenced in max-sdk-base here.

I know this is a fairly niche topic, but if anyone has insight, it would be greatly appreciated!