by deadnomore · 1mo ago · 0 comments
> and I fell in love with the jank as it were (hacks
> upon hacks upon hacks going back to the 1980s is
> something I’d definitely describe as “jank”).
Modern macOS still has classic Mac OS code in it dating as far back, and has added Objective C and Swift abstractions on top.
RegisterEventHotKey() is available "in CarbonLib 1.3 and later" according to Universal Interfaces.
The Carbon API itself lasted until 10.15 (Catalina / 2019) for 32 bit apps, so there's presumably at least some classic Mac OS derived code in there until then.
You'll get this error if you try to use the Carbon menu APIs:
> References to Carbon menus are disallowed with AppKit menu system on macOS 14 and newer. Use instances of NSMenu and NSMenuItem directly instead
https://developer.apple.com/documentation/macos-release-note...
UI-level Carbon is gone, but various low-level APIs persist.
One sibling mentioned the menus. Another sibling mentioned the Security framework. The SDK for macOS Golden Gate still ships with headers dating back to MacOS 8.6 (although they are mostly deprecated now) https://kalleboo.com/linked/macos86security_vs_macosgoldenga...