ryanmcgrath / cacao

Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
MIT License
1.79k stars 65 forks source link

This adds minimal support for `NSPopover` in AppKit #74

Closed terhechte closed 1 year ago

terhechte commented 1 year ago

It also adds a facility to display a popover on any kind of Window based on a Rect (not just based on a NSView element). This is useful if the Window hosts a WebView or GPU View but we still want to display a popover anchored to a certain position.

ryanmcgrath commented 1 year ago

Huh. Are you using cacao for that Mastodon app you've been hacking on? I saw it linked awhile ago and had it bookmarked to check up on...

At a glance this looks good but I need to sit down later today after I've had coffee. Appreciate it!

terhechte commented 1 year ago

Yeah kinda. The core is cross-platform Dioxus, but I'm using cacao for macOS specific amenities (where possible). I might also have more PRs coming. I needed a NSSegmentedControl so I also added that.

ryanmcgrath commented 1 year ago

Thought I had merged this - sorry! Appreciate it!