Skip to main content
Home Forums 68kMLA I want to learn how to program an extension of control panel... — #7
Post #7 by Elfen
Source Forum68kMLA
CategoryDevelopment
Post DateWed, 25 Nov 2015 - 20:29
Original URLhttps://68kmla.org/bb/threads/i-want-to-learn-how-to-program-an-extension-of-control-panel.3003/
Post
Symantic (? on spelling; makers of Norton and Think C) released a book "How to program in C for the Macintosh" in the mid 1990s. You could find it on Amazon, it has a navy blue cover. Also "Programming for the Macintosh for the complete dummy" is another book to look into; also from the mid 1990s.

In both books, they have "Thin C", Think C's "little sister" - a complete C Compiler on a 1.4M floppy disk. It wont do everything that Think C would do but it will get you started on the Mac OS environment.

Thing is this - In programming in C for the Mac, you also need ResEdit to make a Resource file. This Resource file determines your window sizes, resource identifications, etc. When you compile the program, you take your program text together with the resource file and let the compiler spit out the program for you. It is not as difficult as it may sound, it is just a bit more involved. For example - if you are printing "hello world", you must have the resource to open a window with an ID (lets say "001"), and the program flow to follow - open window resource 001 and print "hello world". And that's it.

And it's like that for all C compilers on the Mac OS before OSX.

mp.ls