Blocking/Authorizing Callback available via Photoshop SDK?
I see the Photoshop SDK has events such as eventOpen, eventSave, etc in the Photoshop SDK. I can sign up for these events from my plugin to be notified when such actions (open, save, respectively) are performed. But these are *notifications*, not *blocking/authorizing callbacks*.
By "blocking/authorizing callbacks", I mean Photoshop invoking my (previously registered) callback with the following conditions:
(i) Photoshop invokes my callback *before* it actually performs the relevant action (eg Open, Save),
(ii) My callback blocks the handling of the event, and
(iii) I can return a "fail" from within my callback, which will cause Photoshop to error out on the action. E.g., Photoshop will fail the Save action, with maybe an error-message that I provide from my callback.
Does Photoshop provide such callbacks? If so, where in the SDK code can I find them?
Thanks.