Skip to content

Is it possible to create a window using raw pointer from Tauri? #42

Answered by yury
domingasp asked this question in Q&A
Discussion options

You must be logged in to vote

[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() };

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by domingasp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants