Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 컀뮀니티
2

IControlView with runtime .idrc and signing/notarization

Contributor ,
Aug 10, 2023 Aug 10, 2023

Hi,

 

For our plugins we dynamically update some of the .idrc files (essentially png files) in our "idrc_PNGA" folder of our plugins depending on the environment. This folder, however is nested inside the plugin itself. Therefore, updating it dynamically, breaks the signing and Adobe InDesign flags the plugin as "damaged".

 

asaxena_1-1691658008445.png

 

So, I have a few questions:

-Is there a way I can point IControlView to use a path instead of resourceid (pIconView->SetRsrcID)?

-Is it possible to overwrite the plugin idrc_PNGA .idrc files without breaking signing?

-Any other alternative?

 

 

TOPICS
How to , SDK
417
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Aug 10, 2023 Aug 10, 2023

IControlView is an interface, and you can run your own implementation. E.g. SelectionProxyView does that.

There are helper classes, e.g. PNGArt and SVGArt (if you care about scalable UI) also a higher level IconHandler, but those still refer to resources.

If you want to bypass those resources e.g. using a download, you can draw any bitmap via AGMImageRecord. I load mine via IImportPreview::Create24bitRGBPreview.

Translate
Mentor ,
Aug 10, 2023 Aug 10, 2023

IControlView is an interface, and you can run your own implementation. E.g. SelectionProxyView does that.

There are helper classes, e.g. PNGArt and SVGArt (if you care about scalable UI) also a higher level IconHandler, but those still refer to resources.

If you want to bypass those resources e.g. using a download, you can draw any bitmap via AGMImageRecord. I load mine via IImportPreview::Create24bitRGBPreview.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 10, 2023 Aug 10, 2023

That is really interesting. Yet, I am unable to understand clearly how to connect IControlView with IImportPreview::Create23bitRGBPreview. It will be really helpful if you could share a high level approach that you are alluding to.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 10, 2023 Aug 10, 2023
LATEST

Refer PanelTreeView Sample for Create23bitRGBPreview -

 

File - PnlTrvCustomView.cpp - function - PnlTrvCustomView::createPreview.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines