MacDriver is a recent project aiming to enable interoperability between Go and Objective-C. This will make it possible to write macOS, and potentially iOS apps using Go, as well as reuse Go code in macOS apps written in Objective-C or Swift.

The foundation of MacDriver is the objc package, which is a Go wrapper around the Objective-C runtime. It enables accessing any class or convenience methods available in the runtime, which includes the possibility of creating or extending classes at runtime, just as you could do in Objective-C proper. The following is an example of how you can define and instantiate an AppDelegate class as required for any macOS and iOS app:

#interop #objective-c #macos #cross platform #development #news

Using Go in Native macOS Apps with MacDriver
1.05 GEEK