gingerbeardman / stapler

My take on the classic Macintosh app Stapler (with a little bit of LaunchList)
https://blog.gingerbeardman.com/2024/08/10/stapler-i-remade-a-32-year-old-classic-macintosh-app/
MIT License
215 stars 7 forks source link

Support macOS 13 (Ventura) and 12 (Monterey) #7

Closed sgwilym closed 1 month ago

sgwilym commented 1 month ago

Downloaded and saw that it requires macOS 14.0 or later. Aw.

gingerbeardman commented 1 month ago

I know this feeling so well! For years I was tracking behind and I even skipped Catalina and Ventura completely. Buying an iPad that was on iOS 17 meant I had to update to Sonoma. It's actually been a non-event so I wonder what I was bothered about LOL.

These are the things the code uses from macOS 14 (whatever Swift & SwiftUI that is)

image

There may be a way to use older things that exist in Swift/SwiftUI macOS 13, and even 12, but to be honest the whole thing of releasing such incomplete new technologies and then updating them in such a haphazard way is a clusterfuck and IMHO the worst thing Apple have pushed on developers in decades. 😤

If I do make these changes — actually, I will 😊 — i'd like to do it in a way that uses #ifdef so that if/when I eventually strip out the old code and force newer macOS it will be easy to just remove those. It will also make the code more readable as I will be able to see the modern/short/succinct way of doing things next to the older more verbose way of doing things.

gingerbeardman commented 1 month ago

This is done in https://github.com/gingerbeardman/stapler/commit/c202c2ee40ab23bfa9a97cdfb773ef0fba4a4213

New build "soon".

gingerbeardman commented 1 month ago

Added in 1.2 https://github.com/gingerbeardman/stapler/releases/tag/1.2

sgwilym commented 4 weeks ago

Returning from a break, thank you for this!!!