The only modern macOS framework that is still written in Objective-C is Metal, and still almost everyone uses the Swift bindings instead.
The only modern macOS framework that is still written in Objective-C is Metal, and still almost everyone uses the Swift bindings instead.
This is inaccurate. Extremely inaccurate, nearly 100% mistaken. Almost every macOS framework is still written in Objective-C, including AppKit and Foundation.
And the Swift rewrite of Foundation is only beginning: (from December 2022) https://www.swift.org/blog/future-of-foundation/
See also: https://blog.timac.org/2022/0818-state-of-appkit-catalyst-sw... and https://blog.timac.org/2022/1005-state-of-swift-and-swiftui-...
> We hope this is just the start of discussions about this exciting new project. In future posts, we want to discuss plans for the existing swift-corelibs-foundation project and figure out how we transition the ecosystem to the new unified implementation.
Most Objective-C stuff that is around, with exception of Metal, traces back to OS X and iOS early days, and carry with them the weight of maintenaince, and development costs of a rewrite.
Metal is the only post-Swift framework that was written in Objective-C.
Still untrue. Again, see the referenced blog posts.
Indeed, aside from SwiftUI, which is still half-baked on macOS, I'm not aware of many Swift frameworks in the OS. After all, the frameworks still need to provide API to Objective-C apps, including Apple's own apps, not to mention 3rd party apps. The requirements to ship a Swift framework in the system, such as ABI stability and others, are a relatively recent addition to the language: https://www.swift.org/blog/abi-stability-and-more/
> The Objective-C language, AppKit & UIKit frameworks, and Interface Builder have empowered generations of developers. These technologies were built for each other, and will continue to serve us well for a long time to come, but over time new abstractions become necessary. For a while now, you've seen us hard at work defining the next generation of integrated language, frameworks, and tools: Swift, SwiftUI, and Xcode Previews.
>
> Tight integration in a development platform like this requires that all three pieces be designed and evolved together, both driving and driven by one another. Swift result builders were inspired by SwiftUI's compositional structure. SwiftUI's declarative views were enabled by Swift value types. And Xcode Previews was specifically designed for, and enabled by, both. Now, the result is the best development platform that we have ever built. And this year, Swift, SwiftUI, and Xcode all have fantastic updates that take this vision further, and make it even easier for you to build great apps for all of our platforms. And it all starts with Swift. Now Ben from the Swift team is gonna tell you all about what's next.
It doesn't mention Swift frameworks written from scratch either, but the numbers pretty much speak for themselves.
By all means, though, please list the many new Swift frameworks.
> -- https://developer.apple.com/videos/play/wwdc2022/102/
I have no idea why you're quoting that at me.
Other than Metal, all the Objective-C code predates Swift, and is ongoing maintenaince work nothing else, that is why I am quoting that to you, Apple's own words at WWDC to make it clear for anyone that still isn't getting it, Objective-C is DONE, time to move on.
Objective-C is the VB 6, Win32, Forms, WPF of Apple's world, it isn't going away, it isn't getting updated either other than maintenance and security fixes.
The Dock is an app, not a framework. The things you listed are not frameworks, aside from whatever you mean by "the server side frameworks", which being server-side would by definition not be in macOS.
"Framework" has a very specific meaning in the OS: a .framework bundle, providing a linkable executable and typically an API, with the system frameworks residing in /System/Library/Frameworks.
"Other than Metal, all the Objective-C code predates Swift, and is ongoing maintenaince work nothing else"
This is still false, you have nothing but anecdotal, cherry-picked evidence, the numbers from the blog posts I cited suggest otherwise, you appear to be quite ignorant, and I'm tired of arguing with you, so I'm indeed DONE here.