I don’t think there is a way to do this without Objective-C/C++. The GLFW Cocoa source code is itself Objective-C. A simple approach might be to make a very small library which does the work you need in Objective-C and thus you can stay in C/C++ for the rest of your code.
ah i was afraid of that! unfortunately i’ve never looked at obj-c or obj-c++ before today… is there a reason the NSWindow can be exposed via glfwGetCocoaWindow() but there isn’t something like a glfwGetCocoaView() which can expose the NSView in your C++ code?
with that aside i have started to write a getNSView obj-c++ file…
You can definitely add that to your own fork of GLFW, and potentially submit a PR. I don’t know if it will be accepted as I think the reason this wasn’t included was that the most users of the API would need to write in Objective-C to access the native functionality, and GLFW tries to be lightweight by minimizing API surface area.