Open mojo2012 opened 5 years ago
Struct parameters are not well supported right now. I'd like to add support for them, but currently it isn't on my radar. Handling shortcomings like this, I usually handle by writing a small library in Objective-C that wraps the things I need, in a way that is easier for the bridge to work with. Then call that wrapper via the Objective-C bridge.
Well for now I copied some files from rococoa and adapted them a bit. It seems to work quite well. I prefer not to write objective-c :-D
Do you use the rococoa stuff in conjunction with the objective-c bridge (this library), or on its own? e.g. is there any thing you can share that might help others facing the same issue?
This is what I'm currently working on: https://github.com/mojo2012/kakao It's a basic macOS cocoa UI framework. It was born from the dissatisfaction of the current Java IDEs (and I've tried them all) - UI-wise. I plan it to use as the UI foundation for a new Java IDE based on Eclipse Compiler/Editor/LSP infrastructure :-D (if my children give me enough time hehe)
I'm trying to show a simple empty window on screen - but right now I'm totally stuck calling
NSWindow.initWithContentRect:styleMask:backing:defer:
. I think the problem is my NSRect implementation:I have no clue what goes wrong here, but this is the stack:
It would be nice to have basic types already mapped!
Furthermore, it would be awesome to have better logging in case something goes wrong, like what are the selector arguments that were passed (on the objc-side).
Thanks for any help.