I am still rather new to MacOS programming (almost 20 years other). I have a plugin for an application. Using CodeWarrior Pro 9 for MacOS and a Classic target to make a shared lib (the plugin) using C++. The plugin works quite well, but it needs to access the resource forks of other files to extract the PICT data within. These are not system or application resources, but resource forks attached to text files.
The Windows version of the plugin was easier since the resource fork files have been converted to .rsr files that can be processed using any standard or SDK file operations.
For MacOS, I need to use Carbon to find, open, extract the PICT data (this I can do or at least understand the resource structure), and close the resource fork of the referenced file, of course, using Resource methods. It's been days of searching and asking. Still have yet to find a direct answer. Been to developer.apple.com. I even have the MacTech Carbon C docs and examples. But they still don't show how to do just this. Preferences = no. Application resources = no. System resources = no.
So, can anyone show example source code? Does anyone have links to example source code?
Thank you,
Robert
The Windows version of the plugin was easier since the resource fork files have been converted to .rsr files that can be processed using any standard or SDK file operations.
For MacOS, I need to use Carbon to find, open, extract the PICT data (this I can do or at least understand the resource structure), and close the resource fork of the referenced file, of course, using Resource methods. It's been days of searching and asking. Still have yet to find a direct answer. Been to developer.apple.com. I even have the MacTech Carbon C docs and examples. But they still don't show how to do just this. Preferences = no. Application resources = no. System resources = no.
So, can anyone show example source code? Does anyone have links to example source code?
Thank you,
Robert