sending messages to a patcher from an external


    Oct 30 2006 | 2:08 am
    I have an external that is opening a patcher using stringload(). It tries to send a bang message to the patch using typedmess((t_object*)patch, gensym("bang"), 0, NULL). The patcher prints the error message: "patcher: doesn't understand 'bang'". the patcher has has an inlet that prints out incoming messages. is it valid to use typedmess() to send a message to a patcher? also, i'm not sure if the (t_object*) cast is valid. any insight? thanks, george

    • Oct 30 2006 | 10:53 am
      You're sending a message to the patcher object, not to the first inlet. Unfortunately, the API for doing what you are trying to do is not public at this time. The "pattrforward" object can do this, though, so maybe you can find a solution using your object in combination with pattrforward.
      jb
      Am 30.10.2006 um 03:08 schrieb George Krueger:
      > I have an external that is opening a patcher using stringload(). > It tries > to send a bang message to the patch using typedmess((t_object*)patch, > gensym("bang"), 0, NULL). The patcher prints the error message: > "patcher: > doesn't understand 'bang'". the patcher has has an inlet that > prints out > incoming messages. > is it valid to use typedmess() to send a message to a patcher? > also, i'm > not sure if the (t_object*) cast is valid.