diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-22 23:32:32 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-22 23:32:32 -0400 |
| commit | 300835a1b45b0b59951baa28e69e886aa72fc38f (patch) | |
| tree | be22611cf09874055a031c14cbb62eb1429d40ae /redo/common_darwin.go | |
| parent | f21fdfd7dc1b1345832c1c05c2f1c0c3c8674141 (diff) | |
Implemented Checkbox on Mac OS X. Also untested; will test next.
Diffstat (limited to 'redo/common_darwin.go')
| -rw-r--r-- | redo/common_darwin.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
