Difference between mojo.events.publishEvent and mojo.events. postEvent

  • I want to a tool, subclassed from BaseEventTool, to generate my own events that a different window can respond to. I'm guessing either publishEvent or postEvent will be able to help but the docs could be a bit more explicit?

  • admin

    see mojo.events.publishEvent

    publishEvent will post to the active tool and all observers.

    postEvent will just post the notification to all observers and not to the active tool.

    The difference is the order, the active tool get all the notifications first, before any observer. Depending on the goal you mostly only need postEvent for you custom events. (use reversed domain name for the notification name)

Looks like your connection to RoboFont ● Forum was lost, please wait while we try to reconnect.