68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
Desk Accessories running in ...Mac OS X?
Posted by: gingerbeardman on 2024-08-12 12:40:44
Following on from my recent post about remaking Stapler https://68kmla.org/bb/index.php?threads/stapler-i-remade-a-32-year-old-classic-macintosh-app.48093/

It did the rounds at Hacker News, and I received this comment: https://news.ycombinator.com/item?id=41213242

mistrial9:
"Tic-tac-toe desk accessory with the minimal DA support in system 10.4 .. running right now.. that binary is close to 40 years old if I am not mistaken."

Can anybody shed any light?

I assumed they were running the DA in Classic environment in OS X in a bit of Matryoshka doll fashion, but they assure me they aren't.

mistrial9:
"no it is not "classic" nor Matryoshka .. there is a bit of wrapper code that was introduced in the OS 9 transition, and that code still executes under OSX.."

No reply since.

Any ideas?
matt
Posted by: robin-fo on 2024-08-12 13:04:51
What is Matryoshka?
Posted by: gingerbeardman on 2024-08-12 13:20:12
They are wooden Russian dolls that fit/nest/stack inside each other: https://en.wikipedia.org/wiki/Matryoshka_doll

I was comparing... Desk Accessory *inside* Classic *inside* OS X ...to this sort of doll.
Posted by: gingerbeardman on 2024-08-12 16:55:33
A cryptic reply has arrived!

Posted by: eharmon on 2024-08-12 18:31:07
A cryptic reply has arrived!

They reference "3D Tic-Tac-Toe"...no idea what that is. I found 2 shareware versions and neither are Desk Accessories.

But Calculator is, even in OS 9. And it opens in Classic.
Posted by: joshc on 2024-08-13 01:15:19
DRVR is the resource type for a Desk Accessory I think, so that bit is adding up, but even so, I think it's only Classic Environment that supports this?
Posted by: cheesestraws on 2024-08-13 01:27:31
Yeah, more information here would be needed to work out what's going on.
Posted by: twelvetone12 on 2024-08-13 01:39:12
There is a copy of what seems to be this DA on the Macintosh Repository. The DA there contains the same two resources with the same ids, but the "alis" has different strings in it. The stuff they posted just seems a hexdump of the DA?
Posted by: cheesestraws on 2024-08-13 01:56:24
Yeah, that's a derez of the DA, but it doesn't explain how they're running it under OS X...
Posted by: twelvetone12 on 2024-08-13 02:51:06
Exactly, I'm quite confused tbh...
Posted by: robin-fo on 2024-08-13 03:54:36
It‘s probably a hoax.. I can‘t imagine there is a 68k emulator in Mac OS X (outside Classic)
Posted by: ArmorAlley on 2024-08-13 04:46:41
If the Desk Accessory was written in Carbon, might it work in Mac OS X 10.0 — 10.5-ish?
Or is it not as simple as that?
Posted by: cheesestraws on 2024-08-13 04:54:20
It's not quite as simple as that but that's along the lines I was wondering too - whether it could be a hybrid. Though, that said, it's probably not worth using too much brainspace on decoding a randomer on hackernews who appears to be giving intentionally obtuse answers.
Posted by: joevt on 2024-08-13 13:09:28
https://github.com/ksherlock/mpw is a project to run mpw commands in Mac OS X. It uses emulation. It doesn't do graphical stuff but I suppose one could implement those A-Traps.

~ % mpw commando
Unsupported tool trap: a86f (_OpenPort)
pc: 00f7457c

There is a similarity between desk accessories and MPW commands. They are code meant to run in the context of an existing application. So for Mac OS X, you just need to setup that context (along with the 68K emulation).
Posted by: twelvetone12 on 2024-08-13 13:37:19
The mpw runner Is fascinating, it even implements some basic toolbox stuff! What mpw commands are out there that would be usable with this?
Posted by: joevt on 2024-08-13 18:19:01
What mpw commands are out there that would be usable with this?
Most of the MPW commands should work. I've used DumpPEF and PPCAsm. There's also Rez and DeRez but those have native Mac OS X versions.
1