diff options
Diffstat (limited to 'common_darwin.go')
| -rw-r--r-- | common_darwin.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/common_darwin.go b/common_darwin.go new file mode 100644 index 0000000..bf8c0c0 --- /dev/null +++ b/common_darwin.go @@ -0,0 +1,20 @@ +// 20 july 2014 + +package ui + +// #include "objc_darwin.h" +import "C" + +func fromBOOL(b C.BOOL) bool { + if b != C.NO { + return true + } + return false +} + +func toBOOL(b bool) C.BOOL { + if b == true { + return C.YES + } + return C.NO +} |
