-
I'm trying to use this with Tauri but I am struggling to figure out if it's possible to create a window instance from the raw pointer which Tauri provides. Has anyone tried this before? unsafe {
let ns_window_id: id = window.ns_window().unwrap() as id;
let ns_window = ns::Window::new(); // <-- use the id in here
println!("{:?}", ns_window.title());
} |
Beta Was this translation helpful? Give feedback.
Answered by
yury
May 30, 2025
Replies: 1 comment
-
[https://github.com/tauri-apps/tauri/blob/6a39f49991e613e8f3befe0e8dff288482ccdd89/crates/tauri-runtime-wry/src/window/macos.rs#L13 let ns_window: &NSWindow = unsafe { &*self.ns_window().cast() }; you can do let ns_window: &ns::Window = unsafe { &* window.ns_window().cast() }; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
domingasp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[https://github.com/tauri-apps/tauri/blob/6a39f49991e613e8f3befe0e8dff288482ccdd89/crates/tauri-runtime-wry/src/window/macos.rs#L13
you can do