cacao
cacao copied to clipboard
Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
Compiling below (`cargo build`): ```toml # Cargo.toml [dependencies] cacao = {version = "0.2.1", features = ["user-notifications"]} ``` ```rust // main.rs use cacao::macos::{App, window::Window, AppDelegate}; use cacao::notification_center; #[derive(Default)] struct BasicApp {...
It would be nice to have tray icon and context menu support.
Hello, I'm testing desktop notification using cacao in my repo, [cacao_playground](https://github.com/24seconds/cacao_playground). I just added one line for notification based on [hello world](https://github.com/ryanmcgrath/cacao#hello-world). But I get an error like this when...
From: https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code >- The NSTextAlignment enumeration uses different numerical values for some constants on arm64 and x86_64 architectures. When referring to constants using numerical values, validate that you use the...
I tried to add labels/text input for the iOS example and ran into a bunch of feature flags. Is there a way to get labels/text wired up for iOS? If...
I'm trying to learn rust by writing a simple plain text editor. I followed [this tutorial](https://www.swiftdevjournal.com/create-a-document-based-mac-app-in-swift/) in Swift and I have a working prototype. I'm trying to port it to...
Provides support for the `monospacedSystemFontOfSize` method from `NSFont`. Refer: https://developer.apple.com/documentation/appkit/nsfont/3042659-monospacedsystemfontofsize?language=objc
Takes advantage of lifetime elision on some examples where the rule applies. Refer: https://doc.rust-lang.org/reference/lifetime-elision.html#static-lifetime-elision --- I also noticed that `cargo fmt` applied changes on `src` which I didn't expected to...
I was on vacation last week and did this for fun so it's a bit disorganized. I started out doing unit tests and then got off track. This PR should...