Bundles in Mac OS 9

I've skipped the transition from Mac OS 9 to Mac OS X.

So while I was following the wyag tutorial to write a GIT my first step into the implementation was to figure out a way of assessing whether a path exists and whether it was a directory or a file.

I got a lot of help from some clever people on the 68kmla forum and came up with a neat little code:

https://github.com/sentient06/classic-mac-snippets/blob/master/Cpp%20Toolkit/FileFinder.cp

Of course, that thing wouldn't work on my emulated mac, no matter what I did.

I finally figured out the reason, though: some weird setting caused the generated app to be wrapped inside a bundle, very much like Mac OS X's app bundles. So as the binary lived inside that bundle, it wasn't able to find the files in the current directory because it was lookin at its own wrapper instead.

Mystery solved. I shall resume my tutorials from the PowerPC Programmers Toolkit.

They are immense and such a bore to write!

Comments

Popular posts from this blog

Using Retro68 on a Mac

Catching up with QEMU

Flashback: 1991