BusinessWeek Logo

Apple Donates MacPaint Source Code To Computer History Museum

Posted by: Arik Hesseldahl on July 20, 2010

macpaint.jpgOne of the earliest bits of software that made the original Macintosh computer so interesting to use and unusual for its time was a drawing program called MacPaint.

Released in 1984 with the Mac, it is fondly remembered not only by those who used it, but also by computer scientists for numerous first-of-a-kind innovations. Those who spend a lot of time using Adobe Photoshop constantly use such features as the lasso tool for selecting non-rectangular shapes, and the paint bucket for filling closed areas with a pattern, and later, color. Both first appeared in MacPaint. The program was unique at the time for its ability to create graphics that could then be used in other applications.

Apple is today officially donating the source code to the Computer History Museum in San Jose Mountain View, California. You can read more about the donation on the Museum’s website here.

How the donation came to happen is a bit of an interesting story in itself, as recounted by Andy Hertzfeld, one of the key members of the original Macintosh development team and author of the Mac history book “Revolution In The Valley”. It was in January 2004, at an event honoring the Mac’s 20th Anniversary that the respected Stanford University computer science professor Don Knuth called MacPaint “the best program ever written.”

Knuth went on to ask a panel assembled for the event if it was possible to get the original source code for MacPaint from Apple, not to run it as an application, but rather to study it under the hood as research for his multivolume book “The Art Of Computer Programming.” On that panel was Andy Hertzfeld, a senior member of the development team that created the original Mactintosh. Intrigued at the thought of releasing the source code to the public, he called MacPaint creator Bill Atkinson to see if he had any copies of the original.

Persuaded to dig through his attic, he found a set of original MacPaint floppy disks formatted not for the original Mac, but for the Lisa — a Pre-Macintosh machine — and on top of that in a developmental disk format for the Lisa that had never been released to the world. Eventually a Lisa machine with a network connection was found, suitable, as Hertzfeld put it, “for getting the bits out of the box.”

“After that I got to thinking, that if these files were interesting and useful to Don Knuth, they must be interesting and useful to others,” Hertzfeld told me. He thought of simply posting them to the Web, but feared a lawsuit from Apple.

He then hit upon the idea of convincing Apple to donate the code to the Computer History Museum. By this time he had taken his current job as a software engineer at Google, Hertzfeld reached out to Donna Dubinsky, a former Apple exec who later went on to be CEO of Palm and Handspring. Dubinsky, who sits on the museum’s board of trustees is friends with Nancy Heinen, who was then Apple’s general counsel.

Heinen, as Hertzfeld tells it, said Apple would be “delighted” to donate the MacPaint source code for the benefit of academic and historical research. Formal approval, he assumed, would surely come right away. However, Heinen was soon caught up in Apple’s stock options scandal and resigned her position before formal approval was given. Ultimately Heinen settled an SEC lawsuit in 2008. Hertzfeld sought approval no fewer than six different times Heinen’s various successors with no luck, he said.

Finally in January of this year, Hertzfeld saw Apple CEO Steve Jobs, and told him of the stalled request for the source code. Within 24 hours, Jobs asked Apple’s new general counsel, Bruce Sewell to approve it. The files are going live today.

What you’ll find are actually two files, one containing the source code of MacPaint itself, the other containing QuickDraw, which Hertzfeld calls “the single most important component of the original Macintosh technology.” It was a key enabling technology not only for MacPaint but for the entire Mac interface, and by itself amounts to about one-third of the source code for the original Macintosh operating system, Hertfeld said.

MacPaint was last updated in 1988, and Apple, and later its software subsidiary Claris continued to sell it until 1998. Hertzfeld has much more to say about MacPaint here, on his fascinating Mac-history site Folklore.org. And there are some interesting screenshots of MacPaint in action here.

Reader Comments

Conan Kudo (ニール・ゴンパ)

July 20, 2010 10:26 AM

What would be really awesome is if Microsoft, Apple, IBM, and Adobe could get together and donate source code of old OSes and key applications for purposes like this. Mac OS Classic, Windows 3.x, MS-DOS, Adobe Photoshop for Mac OS Classic and Windows 3.x, etc.

The amount of history in source code is amazing....

mgabrys

July 20, 2010 10:30 AM

"Persuaded to dig through his attic, he found a set of original MacPaint floppy disks formatted not for the original Mac, but for a flavor of the old Lisa — a Pre-Macintosh machine - that had never been released to the world."

Um, the Lisa was never sold to the public? Really Bloomberg? Really?

drow

July 20, 2010 11:41 AM

kudos to all involved.

Arik Hesseldahl

July 20, 2010 11:44 AM

@mgabrys What I mean by that is the format for the Lisa that the disks were in, was not itself released to the public. I'm not referring to the Lisa itself. Perhaps that's not as clear as it should be.

amigaluvr

July 20, 2010 11:55 AM

MacPaint was interesting, but the real revolution in multimedia came a year later when the Amiga launched in glorious color and Deluxe Paint burst on the scene like software from 20 years in the future to show us what the 21st century would be like.
http://en.wikipedia.org/wiki/Deluxe_Paint

Chris L

July 20, 2010 12:00 PM

I bet there would be a lot of corporate and legal red tape in the way of releasing the code to an old OS. There could be significant portions that were used under license & are owned by 3rd parties. The old code will also have massive security holes and you don't want your company responsible for releasing code with well known critical bugs like that.

Tim Lesher

July 20, 2010 12:05 PM

> Um, the Lisa was never sold to the public? Really Bloomberg? Really?

Read that again: "formatted... for *a flavor* of the old Lisa... that had never been released."

Sounds like the disks were written on a particular pre-release Lisa drive that never shipped.

Arik Hesseldahl

July 20, 2010 12:11 PM

@TimLesher : I've edited that paragraph to make it more clear. Obviously the Lisa was released to the public. I'm referring to the disk format of the disks found. They were in a developer's format that was never deployed on the Lisa. The paragraph should have been a little more clear and hopefully is now.

Jacob

July 20, 2010 12:26 PM

Not to mention that Windows 3.x source code is probably still under heavy use in Windows 7.

Ron

July 20, 2010 12:26 PM

"Um, the Lisa was never sold to the public?"

Read carefully: "but for a _flavor_ of the old Lisa".

Obviously a variant or model that got canned because of poor Lisa sales.

Jason Scott

July 20, 2010 1:19 PM

I like the part where the people are correcting the original commenter while the author and the commenter and discussing how the commenter was right.

pat

July 20, 2010 4:23 PM

The floppies were possibly Twiggy format, a proprietary 5 1/4" format, which was released to the public but were replaced by the Sony 3 1/2" free of charge to early Lisa buyers. The "never sold to the public" part refers to the floppy format used on the proprietary Lisa development system, which ran on Lisas, and was the environment used for early Macintosh SW development.

Ian Farquhar

July 20, 2010 6:16 PM

Kudos to Apple for releasing this old historically significant source code. A lot of people fail to realize how hard it is for companies to do this. For the typical corporate lawyer, historical source code release is a scary concept with no apparent value. So they resist it.

But I've also got to note that although MacPaint was significant, it was also more of a critical tech demo than a truly usable tool. This was primarily due to the extreme limitation of the Mac platform at the time.

Other tools which followed MacPaint, and yes AmigaLuvr Deluxe Paint was one, did far more to show the value of digital image editing than MacPaint ever did. Unfortunately, they don't fit in the "Apple invented everything wonderful" revisionism which is currently popular in the press.

So kudos to Apple, but brickbats to Business Week who frankly should have done a bit more research.

DD

July 20, 2010 8:19 PM

Cool.

I loved MacPaint, it was important because it showed us what is possible. Once I saw it, it became clear that we could make software do whatever our imaginations desire.

Parr Crone

July 20, 2010 10:07 PM

The original Lisa design used Apple developed 5.25" drives with a read head on each side of the special media to increase the data transfer rate. They were called "Twiggy" drives. Not many machines were shipped with the Twiggy drives, Sony later came out with the 3.5" Floppy disc drive that was used in the original Mac and the later Lisa models. Apple also had a drive upgrade that was used to replace the faceplate and Twiggy drives with the Sony mechanism. This Sony 3.5" drive design was later the standard for both the Macintosh, later Apple II models and the "PC" platform.

Ed

July 20, 2010 10:19 PM

I wonder what disk format that might have been? Maybe the twiggy drive format?

Marco

July 20, 2010 10:21 PM

This was obviously carefully positioned to help the public forget about "attenagate".

butterfree

July 20, 2010 11:16 PM

andy hertzfeld mentions the lisa floppy format here:

Frank

July 21, 2010 8:38 AM

People fondly remember the novelty of doing things with software they never envisioned before, just as they recall first hearing musical ideas that seemed so revolutionary at the time.

Simple and elegant design is often a function of limits.

As hard as it is for us older folk to admit sometimes, young kids are having similar experiences today with software and products we wrinkle our noses at.

ObligeMe

July 21, 2010 8:52 AM

outstanding concept, a creative look at machine code for early hardware too. as the legal machine wound itself up tight when the profits started to avalanche, so much real programming innovation was stiltified by the secrecy and obsession with money. where computers could have gone, had this been avoided years ago is really sad.

Andrew

July 21, 2010 9:30 AM

""Um, the Lisa was never sold to the public?"

Read carefully: "but for a _flavor_ of the old Lisa".

Obviously a variant or model that got canned because of poor Lisa sales."

-> Ah, the joys of reading comments pre-edit...

@Amigaluvr Thanks for the link! This is interesting, too. I remember getting to use that in elementary school.

Chris L

July 21, 2010 9:51 AM

Yes there was paint software before MacPaint, going back to the invention of the frame buffer in the 70's, but it's historically significant and doesn't take away from the earlier achievements to recognize it.

Joe

July 21, 2010 9:58 AM

To Arik Hesseldahl:
It was very clear that you were referring to the disk format and not the Lisa itself. These people obviously don't know how to comprehend what they read...especially if it's above an 8th grade level. A well written and very good article.
(In the future, maybe you could avoid big words and complex sentences for the children)

Matt Penner

July 21, 2010 11:47 AM

I used Mac Paint on the Mac Plus and I would definitely call it revolutionary. Yes the Amiga, and several others, came out with competing or better products, however, for me in a new Mac world coming from the IBM PC clone world this was amazing.

And, in contrast to one commenter who said it was a neat demo and nothing more, we used this in our desktop publishing all the time. We could finally create and manipulate graphics and logos for newsletters, business cards, etc. For a small business it really made us stand out. Hardly anyone in the mid-80's had this capability for so cheap. It usually required a large print house with expensive machines. Now we could put a real professional touch on customer documents. B/W art was definitely used on probably 90% of print output at the time so having a color capable utility didn't offer much when it came to a hard copy. MacPaint really allowed us to push the boundaries. With a Mac SE/30 and an Apple LaserWriter II we were producing high quality professional documents for clients for less than $7,000 in the late '80s, which at the time was simply amazing.

I'm sure others out there could have done something similar with Amigas, PCs, etc, but for us this was a game changer. :)

Great article! I love seeing recaps on older history like this, for any company, not just Apple.

cdm

July 21, 2010 12:01 PM

So what was it written in?
Inquiring programmers want to know...

Jules

July 21, 2010 1:18 PM

"Those who spend a lot of time using Adobe Photoshop constantly use such features as the lasso tool for selecting non-rectangular shapes, and the paint bucket for filling closed areas with a pattern, and later, color. Both first appeared in MacPaint."

While I can believe MacPaint was the first to have the lasso tool, which is pretty esoteric, I find it hard to believe the paint bucket tool was new to it. Having seen graphics prepared using a Xerox Alto (c. 1981) they certainly appear to have been able to replicate its behaviour.

Fabio Leitao

July 21, 2010 2:15 PM

According to the museum site: "MacPaint is the drawing program application which interacts with the user, interprets mouse and keyboard requests, and decides what is to be drawn where. The high-level logic is written in Apple Pascal, packaged in a single file with 5,822 lines. There are an additional 3,583 lines of code in assembler language for the underlying Motorola 68000 microprocessor, which implement routines needing high performance and some interfaces to the operating system."

Also: "QuickDraw is the Macintosh library for creating bit-mapped graphics, which was used by MacPaint and other applications. It consists of a total of 17,101 lines in 36 files, all written in assembler language for the 68000."

Agus Dwi Basuki

July 21, 2010 9:41 PM

And, we're waiting what the next apple donates. :D

Fred

July 22, 2010 11:34 AM

17000+ lines in assembler! My head hurts just thinking about it.

Earl Truss

July 22, 2010 12:07 PM

17000 lines of assembler makes your head hurt? Some of us worked on systems with millions of lines of assembly code without our heads exploding. Of course after learning 68000 assembler I decided that was the last one I was going to learn.

Earl Truss

July 22, 2010 12:10 PM

Being in the PC world shortly after this, I remember when I first discovered Deluxe Paint. It came in a box with a MOUSE. My first experience with an input device other than keyboard and joystick.

geoff stephenson

July 23, 2010 11:56 AM

Interactive graphics began much earlier than the PC or MAC. In the late 60s the IBM 1130/1800 series suppported interactive black and white or black and green displays with light pens. These were much easier to use than the later mice as you could draw directly on the screen and click on menus and areas while pointing. I think the paint bucket existed at this point. Another system was the IDIIOM, developed for the US space programme. I used one of these hooked up to a UNIVAC 1106. Unfortunately the transition to colour made light pen technology unworkable and it was some time before the mouse and art pad systems were available.

Ralph Hyre

July 24, 2010 1:09 AM

Thanks to Apple, Steve Jobs, Andy Hertzfeld, and Bill Atkinson for tracking down and releasing the source code to these historically important artifacts.

As I recall, QuickDraw and the Lisa OS represented 200 man years of effort.

- Ralph

Cagatay Ozgur

July 25, 2010 11:33 AM

Any info on how many copies were sold throughout the lifetime of the software?

Harpalsingh

July 28, 2010 11:12 AM

Yes, it is really a good deed by Apple. Today, in the Age of Computing, developers could refer the techniques of Senior Developers.

Rubie

July 28, 2010 6:35 PM

I loved Macpaint, although it had it's limitations, it was an amazing beginning. Big pat on the back to Apple for having the guts to give this up.

ipad skins

Post a comment

 

About

A blog on the daily doings of Apple and the many companies in its orbit, with insight and analysis by two longtime Apple-watchers Bloomberg Businessweek Senior Writer Peter Burrows and Bloomberg Businessweek.com Senior Technology Writer Arik Hesseldahl.

BW Mall - Sponsored Links

Buy a link now!