4 ms·
Is it practically possible to create GUI application for MacOS without using XCode? I am building my Sciter using premake5 on Win/Lin/rPI/Mac. Premake5 is ver
by c-smile 5y ago
Is it practically possible to create GUI application for MacOS without using XCode?
I am building my Sciter using premake5 on Win/Lin/rPI/Mac.
Premake5 is very useful to generate projects and makes for different platforms/IDEs. But on Mac premake5 is really works to create .dylibs only -
seems like to generate GUI app on Mac XCode is the only option, is it?
- slmjkdbtl 5y agoIt's very possible, check out code for glfw, sdl, and sokol and grep for "cocoa", "mac", but you do need ObjC, which can be written in C files with -ObjC flag.
- saagarjha 5y agoDepends on what "practical" means to you. For example, you can paste import AppKit _ = NSApplication.shared NSApp.setActivationPolicy(.regular) let window = NSWindow(contentRect: NSRect(origin: .zero, size: CGSize(width: 500, height: 500)), styleMask: [.titled, .closable, .miniaturizable, .resizable], backing: .buffered, defer: true) window.title = "Test" window.center() window.makeKeyAndOrderFront(nil) NSApp.activate(ignoringOtherApps: true) NSApp.run() into a file and run it to get a window.