Updated Building a Classic MacOS app (markdown)

Uli Kusterer 2022-10-16 14:11:42 +02:00
parent 024d3f26ae
commit 9cfba443bc

@ -6,11 +6,11 @@ Create a folder named `mpw-sillyballs` to hold your project (you can choose any
## Obtain the C source code
Find the `SillyBalls.c` example. For MPW 3.5, it is at `MPW/Examples/CExamples/SillyBalls.c`. Copy it into a the `mpw-sillyballs` folder.
Find the `SillyBalls.c` example included with your copy of MPW from Apple. For MPW 3.5, it is at `MPW/Examples/CExamples/SillyBalls.c`. Copy it into the `mpw-sillyballs` folder.
## Creating a resource file
Every application on classic MacOS needs a few resources that describe the application and its UI. Those are usually defined in a resource file. You can create this resource file in a text description language named `Rez`. We'll create a minimal resource file named `SillyBalls.r` that just tells the operating system about our application's abilities:
Every application on classic MacOS needs a few resources that describe the application and its UI. Those are usually defined in a resource file. You can define this resource file in a text description language named `Rez`. We'll create a minimal resource file named `SillyBalls.r` that just tells the operating system about our application's abilities:
```Rez
#include <SysTypes.r>