ksherlock / mpw

Macintosh Programmer's Workshop (mpw) compatibility layer
238 stars 21 forks source link

AppleSingle/AppleDouble support? #68

Open uliwitness opened 6 months ago

uliwitness commented 6 months ago

With an eye towards the dream of eventually getting this to run on other platforms with non-HFS file systems: Any chance of making mpw support writing not to two-fork files with data and resource fork, but to AppleSingle or AppleDouble (or heck, .hqx or .sit if you wanna invest the extra work)?

That would probably require also being able to write resource forks by ourselves, like ResForge does it.

Feel free to close this if it's way too early to think about this, just thought I'd put the idea in your head.

ksherlock commented 6 months ago

Currently reading/writing resource forks is handled by the OS X Carbon Libraries. Carbon GUI has been gone for years (and good riddance) but the resource support is still there, somehow, although I'm sure someone will kill it off someday.

I'm not sure the current state but I was at one point working on a cross platform version. Windows is much closer to classic MacOS than unix (Windows NT added alternate data streams to support resource forks on their AFP server).

So it is on my mind and maybe someday.