示例#1
0
文件: gmdgo.go 项目: waxcorp/gmd
func Run() {
	if DoItTheRightWay {
		C.NSAppRun()
	} else {
		appChanStart <- true
		//C.NSAppRun()
		<-appChanFinish
	}
}
示例#2
0
文件: gmdgo.go 项目: waxcorp/gmd
func init() {
	if DoItTheRightWay {
		runtime.LockOSThread()
	}
	C.initMacDraw()
	if !DoItTheRightWay {
		go func() {
			runtime.LockOSThread()
			<-appChanStart
			C.NSAppRun()
			appChanFinish <- true
		}()
	}
}
示例#3
0
func Run() {
	C.NSAppRun()
}