This adds the ability for the MacGap triggerEvent method to trigger an event on the JavaScript side, which contains a data object.
This is useful in numerous cases, and extends the triggerEvent method in a small but useful way.
For example, if the NSWorkspace detects a NSWorkspaceDidActivateApplicationNotification, it's helpful to pass information about the activated application back to the JavaScript event handler.
This adds the ability for the MacGap triggerEvent method to trigger an event on the JavaScript side, which contains a data object.
This is useful in numerous cases, and extends the triggerEvent method in a small but useful way.
For example, if the NSWorkspace detects a NSWorkspaceDidActivateApplicationNotification, it's helpful to pass information about the activated application back to the JavaScript event handler.
Javascript: