capy-ui / capy

💻Build one codebase and get native UI on Windows, Linux and Web
https://capy-ui.org
Mozilla Public License 2.0
1.6k stars 60 forks source link

MacOS platform support? #78

Open OlshaMB opened 6 months ago

OlshaMB commented 6 months ago

currently macos backend only creates window object and doesn't show the window(because macos requires NSApplication run), also it doesn't support any widgets. And the cpu usage at 99 %. So it literally impossible to go beyond a running app without the window

I am willing to contribute.

OlshaMB commented 6 months ago

Also is there any reason why capy ui is not using libraries for obj-c(zig-objc, mach-objc)? Can I use them to implement better support for macos?

zenith391 commented 4 months ago

I've now made the necessary groundwork for macOS to be supported, that is, now the Objective-C runtime can be used (I chose to use zig-objc), the event loop works, and the window is shown. All that's left to do is implementing the widgets. I'll do it later sometime.

OlshaMB commented 2 months ago

@zenith391 How eventUserData fits into already existing backends, and how it should fit into new macOS one? I'm willing to contribute, but I'm a bit stuck with idea of eventUserData.