Added common_darwin.go; moved toBOOL() there.

This commit is contained in:
Pietro Gagliardi 2014-07-20 21:26:26 -04:00
parent 88a51068db
commit cb96b8c6fd
2 changed files with 13 additions and 8 deletions

13
redo/common_darwin.go Normal file
View File

@ -0,0 +1,13 @@
// 20 july 2014
package ui
// #include "objc_darwin.h"
import "C"
func toBOOL(b bool) C.BOOL {
if b == true {
return C.YES
}
return C.NO
}

View File

@ -9,14 +9,6 @@ import (
// #include "objc_darwin.h"
import "C"
// TODO move to common_darwin.go
func toBOOL(b bool) C.BOOL {
if b == true {
return C.YES
}
return C.NO
}
type widgetbase struct {
id C.id
parentw *window