From 300835a1b45b0b59951baa28e69e886aa72fc38f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 22 Jul 2014 23:32:32 -0400 Subject: Implemented Checkbox on Mac OS X. Also untested; will test next. --- redo/common_darwin.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'redo/common_darwin.go') diff --git a/redo/common_darwin.go b/redo/common_darwin.go index 0c49a58..bf8c0c0 100644 --- a/redo/common_darwin.go +++ b/redo/common_darwin.go @@ -5,6 +5,13 @@ 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 -- cgit v1.2.3