MPW, Carbon and building Classic Mac OS apps in OS X

Steven Troughton-Smith:

Just to provide an example for this post, I put together a trivial drawing app called BitPaint. It isn’t very interesting, but it should illustrate a few things:

  1. What’s involved in bringing a trivial classic Mac app to Carbon
  2. How the Classic Mac OS build process works
  3. How much source compatibility exists between 1984’s Toolbox and Carbon today

The answer to the third question is surprising: a lot. In fact, Steven managed to build an application that runs on every version of Mac OS/OS X, all the way from System 1.0 to today’s OS X 10.10 Yosemite. I’ve been following Steven’s progress (and by following I mean ‘looked at pretty screenshots’ because I don’t understand the developer stuff), and it’s quite incredible to see a single codebase run on such a long string of Mac OS/OS X releases.

A crucial aspect in this whole endeavour has been mpw, “an m68k binary translator/emulator whose sole purpose is to try and emulate enough of Classic Mac OS to run MPW‘s [note the caps!] own tools directly on OS X”.

I am incredibly psyched about mpw. Its developer, ksherlock, has been very responsive to everything I’ve come up against as I stress test it against various tools and projects.

Right now it’s a fully usable tool that makes Classic Mac OS compilation possible and easy to do on modern versions of OS X, without requiring emulators or ancient IDEs or the like. To my knowledge, this is the first time this has been possible (excluding legacy versions of CodeWarrior).

This entire post is a must-read.

13 Comments

  1. 2015-01-25 3:59 am
    • 2015-01-26 9:40 pm
  2. 2015-01-25 6:16 am
    • 2015-01-25 11:29 am
      • 2015-01-25 11:44 am
    • 2015-01-25 1:21 pm
      • 2015-01-25 5:54 pm
      • 2015-01-26 3:36 pm
    • 2015-01-25 3:34 pm
  3. 2015-01-26 12:05 am
  4. 2015-01-26 6:27 am
    • 2015-01-28 9:23 pm
  5. 2015-01-26 6:21 pm