macdriver icon indicating copy to clipboard operation
macdriver copied to clipboard

Missing NSApplicationMain() implementation

Open iMacker2020 opened this issue 2 years ago • 1 comments

In an Objective-C application the NSApplicationMain() function is called to start the application. It basically does all this:

void NSApplicationMain(int argc, char *argv[]) { [NSApplication sharedApplication]; [NSBundle loadNibNamed:@"myMain" owner:NSApp]; [NSApp run]; } *from https://developer.apple.com/documentation/appkit/nsapplication?language=objc

Please add this function to the Go bindings. This would enable the use of xib files.

Thank you.

iMacker2020 avatar Jul 25 '22 20:07 iMacker2020

It's not clear what you want added. Can't you define that function on your own? If you're building an app in Go, there's no XCode to generate a main(), so this is not going to be called.

progrium avatar Jul 25 '22 21:07 progrium