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