This is something I've working on for a while and since I am running out of steam, I thought posting it here might help to at least give me a boost if there is interest.
Clapkit ("CLassic APplication KIT") is a C++ wrapper for Macintosh Toolbox functions, allowing development using Retro68 using modern syntax. It (tries to) handle most of the "skeleton" functionality so you can focus on writing your app. Creating and showing a window is as simple as:
You don't have to initialize the toolbox, track controls, call DragWindow, SysClick, TrackGoAway, etc.
It's in VERY EARLY development and EXTREMELY limited right now, but it can still be used to create simple apps. Goal is to add support for Networking (MacTCP, at least), IPC, etc. before adding Carbon and hopefully, Cocoa support eventually, so you can compile an app for System 6 all the way to macOS 15.

If you are interested, check it out at https://github.com/macinlink/clapkit and let me know what you think!
Clapkit ("CLassic APplication KIT") is a C++ wrapper for Macintosh Toolbox functions, allowing development using Retro68 using modern syntax. It (tries to) handle most of the "skeleton" functionality so you can focus on writing your app. Creating and showing a window is as simple as:
C++:
// Create a window, set title.
CKWindow* window = app->CKNewWindow(CKWindowInitParams(CKSize(300, 10)));
window->SetTitle("Hello!");
// Create a label, 10px away from edges.
int padding = 10;
CKLabel* label = CKNew CKLabel(CKSize(300 - (padding * 2), 20));
label->rect->origin->x = padding;
label->rect->origin->y = padding;
label->SetText("Hello world!");
// Why not make it red?
label->color = CKColor({255, 0, 0});
// Add it to the window.
window->AddControl(label);
// Show the window.
window->Show();
You don't have to initialize the toolbox, track controls, call DragWindow, SysClick, TrackGoAway, etc.
It's in VERY EARLY development and EXTREMELY limited right now, but it can still be used to create simple apps. Goal is to add support for Networking (MacTCP, at least), IPC, etc. before adding Carbon and hopefully, Cocoa support eventually, so you can compile an app for System 6 all the way to macOS 15.

If you are interested, check it out at https://github.com/macinlink/clapkit and let me know what you think!
Last edited:
