summaryrefslogtreecommitdiff
path: root/common_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-30 23:02:02 -0400
committerPietro Gagliardi <[email protected]>2014-08-30 23:02:02 -0400
commit77bf566ebbcb62acd4d08d905d9542d6ff9b6b80 (patch)
treeeeb8e72bc3bf57f5be7f0c0af4319189ac6de838 /common_darwin.go
parent155899c65ed32245e2ccad4197a10c77017d835b (diff)
...in with the new.
Diffstat (limited to 'common_darwin.go')
-rw-r--r--common_darwin.go20
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
+}