Hi,
I need some example code that is saving/replacing resources in the classic Mac OS resource format files. All I need to do is edit a DITL resource and store it back into the resource file.
I have this Carbon project that is still alive and it has maybe 400 DITLs in it and moving these things into Cocoa would be a nightmare. The thing is, in my Carbon application I am already parsing DITL format and creating controls on my own with Carbon APIs, not the old Dialog manager, so parsing DITLs would not be a problem. I have found the format for DITL resource in one of the original Inside Macintosh I-V books.
Yesterday I realized that in Lion even Carbon apps look kinda cool and I would really hate to kill it now, but I need to be able to edit DITL resources even on Intel Macs somehow. So I don't really need complete solution for all that, only some snippets of Carbon code that are writing to the resource files.
I need some example code that is saving/replacing resources in the classic Mac OS resource format files. All I need to do is edit a DITL resource and store it back into the resource file.
I have this Carbon project that is still alive and it has maybe 400 DITLs in it and moving these things into Cocoa would be a nightmare. The thing is, in my Carbon application I am already parsing DITL format and creating controls on my own with Carbon APIs, not the old Dialog manager, so parsing DITLs would not be a problem. I have found the format for DITL resource in one of the original Inside Macintosh I-V books.
Yesterday I realized that in Lion even Carbon apps look kinda cool and I would really hate to kill it now, but I need to be able to edit DITL resources even on Intel Macs somehow. So I don't really need complete solution for all that, only some snippets of Carbon code that are writing to the resource files.
Last edited by a moderator: