News for hackers. Stuff that matters.
Re:Like the macOS Dock but for macOS System 7 by VWWHFSfQ on Wednesday May 03, 2023 @07:28PM (#35809234)
What was the point of minimizing the source code for this
Re:Like the macOS Dock but for macOS System 7 by adamdennis on Wednesday May 03, 2023 @07:33PM (#35809286)
Somethings up with GH’s rendering… when we view the raw sc, it’s un-minified:

https://raw.githubusercontent.com/retrospectmike/MacDock/mai...

Re:Like the macOS Dock but for macOS System 7 by linux2647 on Wednesday May 03, 2023 @07:41PM (#35809362)
MacOS traditionally used `\r` for line endings. Unix (and thus macOS 10+) uses `\n` and Windows `\r\n`. Github isn't properly recognizing the files have classic MacOS line endings
Re:Like the macOS Dock but for macOS System 7 by deaddodo on Thursday May 04, 2023 @01:25AM (#35811550)
Yup, this is it. Newline and CR + NL are the only recognized line endings on Github. You see this often on old source dumps (the Prince of Persia source release stands out, IIRC) of Classic Mac software.
Re:Like the macOS Dock but for macOS System 7 by retrospectMike on Wednesday May 03, 2023 @09:14PM (#35810065)
Interesting to read about the issue. This is my first time posting source code on git written on a vintage machine. Honestly the source code tracking, the way Ive done it, is not very useful. I dont blame git and I can’t say there aren’t ways to configure it to be more useful.

Classic Macintosh also used “data forks” and “resource forks” as part of all files. I know Windows strips the resource fork part (by accident as it has no awareness of it) — so any Macintosh file that uses its resource fork will be broken. This includes the THINKC project file and the .rsrc file in the repo! Tldr - anyone interested in using the source code should just grab the .sit file and bring it to their emulator/or vintage machine and unstuff it there to preserve resource forks. But anyone in the vintage mac space knows all this by now :). Sharing it as fyi here! So proud to see my little app make HN!!!!

Re:Like the macOS Dock but for macOS System 7 by ksherlock on Thursday May 04, 2023 @11:53AM (#35817411)
You could run DockApp.rsrc through DeRez (DeRez DockApp.rsrc Types.r) to get a usable (with Rez) text file.