Exemple #1
0
func Run() {
	if DoItTheRightWay {
		C.NSAppRun()
	} else {
		appChanStart <- true
		//C.NSAppRun()
		<-appChanFinish
	}
}
Exemple #2
0
func init() {
	if DoItTheRightWay {
		runtime.LockOSThread()
	}
	C.initMacDraw()
	if !DoItTheRightWay {
		go func() {
			runtime.LockOSThread()
			<-appChanStart
			C.NSAppRun()
			appChanFinish <- true
		}()
	}
}
Exemple #3
0
func Run() {
	C.NSAppRun()
}