Skip to content

Conversation

tasuren
Copy link
Contributor

@tasuren tasuren commented Oct 17, 2025

It is related #96.
It partially ports SimpleApplication from original cefsimple, and resolves right-click crush on macOS.


By the way, I realized my first commit message, feat: port SimpleApplication from original cefsimple, might be slightly misleading. This is a partial port to fix the right-click issue, not a full port of SimpleApplication. It contains missing features such as -terminate: method and SimpleAppDelegate.

Would you prefer if I rebased to update the commit message to be more precise (e.g., partially port...)? Or are you happy to merge it as is, perhaps squashing and editing the message on your end?

I'm happy to do whatever is easiest for you. Thanks.

Adds Rust bindings for the Objective-C protocols required for proper
application handling on macOS (CrAppProtocol, CrAppControlProtocol,
and CefAppProtocol) using the objc2 crate.

These bindings are necessary to correctly implement an NSApplication
subclass, which is a foundational step for porting the official
cefsimple application logic and fixing related crashes.

Refs: tauri-apps#96
Adds SimpleApplication implementing CefAppProtocol.

Refs: tauri-apps#96
Updates the cefsimple example on macOS to use the new
`cef::application_mac::SimpleApplication`.

This properly initializes the application instance, resolving the crash
that previously occurred during right-click events.

Refs: tauri-apps#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant