Skip to main content
Inspiring
October 6, 2011
Question

Wants to get some info about .ico file usage in InDesign

  • October 6, 2011
  • 1 reply
  • 2430 views

Hi

There is some .ico file used in a project.

In the .rc file, resouce information is define and given a numeric id to this resouce file.

Then this numeric id is #defined in the ID.h file and used where needed in .fr panel for display a picture on a panel. Things are working well in ms window os as I think .rc file is meant for this platform.

But On mac what more changes I have to do in my project so that I can use these .ico files.

Thanks

This topic has been closed for replies.

1 reply

Community Expert
October 6, 2011

You can use the PNG based resources, these files are platform independent files and can be used both in the MAC and Win version of your plugin. For the approach you are currently using you will have to create MAC specific resource file(.r or .rsrc) file just as you create the .rc file for windows.

For using the PNG based resource all you need is to define a resource as follows

resource PNGA(kYourIconResourceID) "Icon.png" in the .fr file

and also define the "kYourIconResourceID" in the id.h file and you are all set to use the png file both in WIN and MAC plugins. All the application tools icon use png file, so this is the preferred platform independent way to go.

Manan Joshi

 

- Efficient InDesign Solutions -

MetaDesign Solutions

http://metadesignsolutions.com/services/indesign-development.php

-Manan
dvkkkAuthor
Inspiring
October 7, 2011

Thanks for your reply was quite helpful!

Since, I am porting one project, so I dont have much alternative else I will be using .png files only. But it will be very helpful if you give some clue for creating .rsrc file on mac.

Community Expert
October 7, 2011

If you want to create the resource file on MAC then you will have to use an application ResEdit, but it won't run on an Intel MAC. You need a power PC to run this application,

ResEdit will run in Mac OS X's classic compatibility mode, but Classic is neither available on Intel MAC's, nor in 10.5 or later. However, an Intel Mac can run ResEdit via some emulator's.

Hope this helps.

Manan Joshi

- Efficient InDesign Solutions -

MetaDesign Solutions

http://metadesignsolutions.com/services/indesign-development.php

-Manan