Difference between mojo.events.publishEvent and mojo.events. postEvent
erik last edited by gferreira
I want to a tool, subclassed from
BaseEventTool, to generate my own events that a different window can respond to. I'm guessing either
postEventwill be able to help but the docs could be a bit more explicit?
publishEventwill post to the active tool and all observers.
postEventwill 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
postEventfor you custom events. (use reversed domain name for the notification name)