Before Close notifier - get the document which is closed?
Hello everybody,
I am struggeling with following problem.
I need to know when a document is closed and in some cases I need to suppress the "Save changes...before closing?" dialogue, an modify the document before closing.
Therefor I use the "AI Command Notifier: Before Close" (kAICloseCommandPreNotifierStr) cause this one is sent before the dialogue. Then I set SetDocumentModified(false) and the dialogue is suppressed.
BUT:
When multiple documents are opened and I close another document than the active one. All actions are applied to the current document (of course), which is not the one going to be closed.
So the big question is: Is it possible to get to know which document is closed (were the
is clicked in the document tabs) and how?
I am also using the kAIDocumentAboutToCloseNotifier and I think here I can get the AIDocumentHandle out of the notifyData - unfortunately this is sent to late for my need.And the kAICloseCommandPreNotifierStr has NULL as notifyData.
Any ideas?
Thanks in advance,
Patrick
