So I started building a game-specific editor in urho using Qt - I did this in linux. I actually got pretty far - life was good. I then started using an imac, and poof!
To work on linux you just pass the widget winId to urho as the external window id and it works fine.
It seems the SDL window creation code on Mac is expecting an NSWindow, and winID() from QWidget returns an NSView - so it was crashing. Im fairly new to Cocoa ecosystem, but looked up some obj c quick tutorials and wrote a little mm file to “convert” the NSView to a NSWindow. Okay no more crash.
Problem is that my editing widget is a child window of the main window - so although there was no crash, doing the above thing not only doesn’t draw the scene correctly to the widget (doesn’t draw anything to the widget), it makes all the input and drag/resize stuff go kind of crazy. I can see that the scene gets loaded and shaders get compiled though…
Anyone done this before that could share? It would be great to get this working on mac as it does on linux