Example #1
0
File: gmdgo.go Project: waxcorp/gmd
func Run() {
	if DoItTheRightWay {
		C.NSAppRun()
	} else {
		appChanStart <- true
		//C.NSAppRun()
		<-appChanFinish
	}
}
Example #2
0
File: gmdgo.go Project: waxcorp/gmd
func init() {
	if DoItTheRightWay {
		runtime.LockOSThread()
	}
	C.initMacDraw()
	if !DoItTheRightWay {
		go func() {
			runtime.LockOSThread()
			<-appChanStart
			C.NSAppRun()
			appChanFinish <- true
		}()
	}
}
Example #3
0
func Run() {
	C.NSAppRun()
}