by makecheck · 8y ago · 0 comments
It’s kind of funny/sad to see how Apple operates with APIs. None of these concepts are really “new”: they were there, in Carbon, prior to Mac OS 8, in the days when that OS was meant to support really elaborate themes.
The original theme APIs were huge, and 3rd parties were expected to adopt them as needed (e.g. using appropriate theme selectors for fonts and background patterns). For about a year, things looked really cool: you could create a great Platinum-esque UI for any custom control, and it would fit right in.
Then, they threw it ALL away for Mac OS X, ironically right about the time when an appearance-agnostic API would make a lot of sense. They didn’t even bother to update their API implementation to ease migration: really trivial changes that would have been helpful, like “update the damned font/color/pattern value returned for X to resemble Aqua”, were not done. This meant that an app full of seemingly-appearance-agnostic code would look like crap under Aqua, and you had to rip it all out.
And it’s not like Mac OS X didn’t change its look. Heck, for a long time you could find 3rd party app bundles chock full of images that were there just to implement the Apple-Look-and-Feel-of-the-Week, because the SDK didn’t offer any reasonable way to do half of what they came up with.
So yeah, 14 versions later, the Mac wants to be appearance-agnostic again. Sounds great. My advice: always have the option of doing your own UI as a backup.
That's almost 20 years ago, and for very good reasons: moving to a whole new OS, with a new graphics pipeline and UI engine, and one they especially wanted to tout.
If that's the reason you don't trust Apple to support the "dark mode" APIs going forward, then that's bogus.
>So yeah, 14 versions later, the Mac wants to be appearance-agnostic again.
Were "the Mac" is a very different OS (the legacy Mac OS vs NeXT based OS X), by an almost totally different company compared to the one that created the original Mac OS 6, 7, 8, 9 and co. And 14 versions later is 18+ years on.
At which point do you draw the line?
Should we also be concerned for what Sculley era Apple did to some APIs?
Furthermore, an awful lot from those days had recently been touted as “the future”, encouraging developers to invest more heavily than they might have otherwise. It would have been more future-proof to not to adopt the API wholesale and just hack in fonts and metrics everywhere but no one knew it at the time.
Had they simply kept using the API, it would have naturally evolved over 20 years. It wouldn’t look the same today (it would probably be way more powerful than NSAppearance) and developers wouldn’t feel like time was wasted.
They could have even created an immediate NS-wrapper for the older API back then (as they did for certain things), if supporting C long-term wasn’t palatable.
No, but they were also created for the previous OS. Not merely the previous release of the OS, a totally different OS.
>Furthermore, an awful lot from those days had recently been touted as “the future”, encouraging developers to invest more heavily than they might have otherwise
Sure, that was bad. But that was the last steps of a dying company, and probably touted as such before Jobs and co took the helms. The decision to drop lots of existing stuff and focus on a totally new platform is what turned the fate of the company around. At least in retrospect we can say it worked great, even if there were some casualties along the way.
Compared to the theme API, I'd more lament Yellow Box (which was a NeXT based technology anyway), and perhaps WebObjects (ditto, and ahead of its time).
That said, I really liked the "Platinum" (I think was the name) OS 8 look, and used to mimic it on Linux through cheapo wm themes.
(which, in the case of 8 and 10, is close to no style, little more than lines on solid rectangles.)
Honest question: how simple would this have been considering the fact that they switched to an entirely different OS, as coldtea points out?
In my experience as a Mac + iOS user and developer for the past 8 years, and for the rest of my life before that on Microsoft platforms, Apple's record has been much better compared to Microsoft re: abandoning APIs or pulling the rug out from under devs.
Take NSDocument for example. It has been around for almost 20 years. All you usually needed to do was inherit from it and adopt its interface and your app would often get new features for free with each release of macOS, like autosaving and version histories.
The foundations for multiple UI appearances have been there since macOS 10.10 Yosemite, 4 years ago. They were hard not to notice.
As a user and developer I'm glad they took the time to work out a sensible implementation that is very easy to adopt now and makes good sense for the future. It definitely seems to be in a better spot than Windows' support for multiple appearances currently, if it has any.
If you see the WWDC sessions on Dark Mode, you might come to appreciate the thought and effort they've put into it:
[0] Introducing Dark Mode: https://developer.apple.com/videos/play/wwdc2018/210/
[1] Advanced Dark Mode: https://developer.apple.com/videos/play/wwdc2018/218/
https://en.wikipedia.org/wiki/Microsoft_Speech_API
While Apple's speech APIs, for all their huff and puff and other legitimate work on accessibility, are totally lacking, way behind, locked away from third party developers, and sadly deficient for application developers who need more than the most basic off-the-shelf features.
For example, SAPI has for decades been able to a send mouth positions (visemes) synchronized with the speech, to animate the lips of the Wizard or Rover the Dog or Clippy (or whatever a paperclip uses to articulate), which is proven to improve speech understanding. But not a peep from Apple's speech API -- their lips are sealed.
https://www.codeproject.com/Articles/1609/Converting-Text-To...
Often not making many APIs available in their latest programming technologies like .NET/C# (at least initially.)
WPF, Silverlight, the "Metro" experiment that lasted for a single (!) version of Windows (8), and great discontinued apps like PhotoDraw, are some of the other cases that personally affected me.
For that matter even winforms is still available.
The Metro UI evolved into windows 10 UWP, and practically everything that was in Metro UI can be transferred to UWP, down to the homescreen widgets.
Silverlight and DirectInput are still available, though they are deprecated they haven't been removed. Silverlight even had security updates released as late as a year ago [2]even though it has been deprecated since 2015
[1] - https://github.com/Microsoft/dotnet-framework-early-access/b...
[2] - https://www.microsoft.com/getsilverlight/locale/en-us/html/M...
They changed the name to Modern UI, some reported [1] because it clashed with their German partner Metro AG. In any case Modern UI started with Zune and you could get for the time nifty looking media player for it on XP [2]. You can still see it in newer parts of Windows 10 with its aversion to skeuomorphic design, preferring text and minimalist 1 color icons.
[1](https://arstechnica.com/information-technology/2012/08/micro...) [2] https://archive.ledfrog.com/2011/06/microsoft-zune-software-...
Actually abandoning APIs is very much one of them.
While programs written in older API still work, MS is notorious for abandoning APIs (as opposed to removing them) and asking developers to support its new shiny thing even faster than Apple changes frameworks (heck, you could still compile NeXT apps 30+ years later, and the frameworks where still supported, albeit with some alterations).
MS always invents new frameworks and APIs every 2-3 years for the same thing, e.g. GUI programming (or at least used to, haven't followed for the last several years).
Support for the Win16 API has been abysmal recently. My limited experience of old DOS and Windows applications is that they often run better under dosbox or wine than native.
It has had pretty much what Apple are implementing since Windows 10. Dark mode and a custom highlight colour that gets applied across the OS.
Of course like on MacOS developers have to be using the latest UI framework to take advantage of this which unfortunately on Windows developers are a fair bit slower on the uptake than on MacOS.
Then again, I don't expect to see much uptake on the Mac side either considering I can't remember the last time I installed a new app and it was a native AppKit(?) UI and not just an Electron app.
The last time I checked Windows 10 did not support Dark Mode across all apps, not even its own File Explorer (unlike Finder and almost all other apps and applets that come with macOS Mojave.)
Has that changed? Do many third-party Windows apps support Dark Mode by now?
> Of course like on MacOS developers have to be using the latest UI framework
From what I remember from the WWDC sessions, I think you can choose to target the second-last macOS release (10.13 High Sierra) and still opt-into Dark Mode support on 10.14 Mojave.
> Then again, I don't expect to see much uptake on the Mac side
Pretty much all "heavy editing" apps like Final Cut, Affinity, Pixelmator Pro or even players like VLC use native AppKit and already offer an option for a custom dark mode or the official limited opt-in version that has been available since macOS 10.10 Yosemite.
That’s because apps were supposed to migrate to Cocoa rather than sticking with Carbon.
> 14 versions later, the Mac wants to be appearance-agnostic again
Ten versions. NSAppearance is 10.10+.
Next time you can stop here:
I’m not sure I trust Apple.