Exemplo n.º 1
0
Arquivo: gmdgo.go Projeto: waxcorp/gmd
func Run() {
	if DoItTheRightWay {
		C.NSAppRun()
	} else {
		appChanStart <- true
		//C.NSAppRun()
		<-appChanFinish
	}
}
Exemplo n.º 2
0
Arquivo: gmdgo.go Projeto: waxcorp/gmd
func init() {
	if DoItTheRightWay {
		runtime.LockOSThread()
	}
	C.initMacDraw()
	if !DoItTheRightWay {
		go func() {
			runtime.LockOSThread()
			<-appChanStart
			C.NSAppRun()
			appChanFinish <- true
		}()
	}
}
Exemplo n.º 3
0
func Run() {
	C.NSAppRun()
}