How to ignore a missing plug-in?
I have two plug-ins A and B.
In plug-in A, it just invoke the interfaces defined in plug-in B. There is no class/implement changes the document data, in other words, it matches the condition descripted in the programming guide "If your plug-in does not store data in documents, you do not need to take any special precautions." .
I saved some documents using plug-ins A and B.
And now, i remove the plug-in A in InDesign. There will be "Missing Plug-ins" warning dialog when opening the documents saved before. It requires plug-ins A. What happened?
I tried to add bellowing code in my B.fr, it doesn't help.
resource DirectiveList(1) {
{
{
IgnorePlugin
{
{
kMyAFirstMajorFormatNumber,
kMyAFirstMinorFormatNumber
},
kMyAPluginID
}
},
}
};
Did i miss anything?
I tried to set the plug-in A to be ignored in code, but the "Missing plug-ins" dialog appears before the responding kDuringOpenDocSignalResponderService, and in kBeforeOpenDocSignalResponderService, i can no nothing because IDocument* is nil at the monment.
It can be resolved by selecting the checkbox "Don't show again for these plug-ins" on the Missing plug-in dialog at the first time.Is there any i can do that in code?
Any suggestion to ignore the plug-in A in code?
---------------------------------------
PS: the IDML cannot help because there is some customize data in my plug-in B which will be lost if using IDML.
Thanks a lot,
AidySun
