From f8e3f12ab02b528f2a05a4f713d7af7ea8e44b42 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 11 Dec 2015 20:37:59 -0500 Subject: LET'S GET THIS FINAL REWRITE EVER STARTED --- prev/common_darwin.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 prev/common_darwin.go (limited to 'prev/common_darwin.go') diff --git a/prev/common_darwin.go b/prev/common_darwin.go new file mode 100644 index 0000000..bf8c0c0 --- /dev/null +++ b/prev/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 +} -- cgit v1.2.3