Our great sponsors
-
Examples_Cocoa
Shows how to use macOS AppKit Cocoa controls without StoryBoard only by programming code (objective-c)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Here is a minimal Hello World Objective C program. You'll need to figure out how declare the needed Objective C interfaces and how to call them from Rust. The C ABI function objc_msgSend will get you part of the way there.
If you find dealing with the Obj-C bindings a bit daunting (I would), I'd recommend you use the objc crate. That will like you dive into the details of creating and updating Mac windows without having to figure out how to call Objective C from Rust.
In addition to the other options, you can look at small windowing libraries in other languages. For example TIGR has pretty straightforward Mac code using pure C (you'll need to have some understanding of the ObjC object model and the way it's exposed to C though).