summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-04 18:56:37 -0400
committerPietro Gagliardi <[email protected]>2014-04-04 18:56:37 -0400
commitba2c1d6d20c9b9afe67a46120969a05672be76cd (patch)
treef3965b53a754bc04846df24090430a778e6a32a4 /sysdata_darwin.go
parentbf1e7aae4217eae5556e7dee7445baa34e0430c7 (diff)
Removed objc_msgSend_uint().
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index be5e72c..1f947f0 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -137,7 +137,7 @@ var classTypes = [nctypes]*classData{
// NSControl requires that we specify a frame; dummy frame for now
button = objc_msgSend_rect(button, _initWithFrame,
0, 0, 100, 100)
- objc_msgSend_uint(button, _setBezelStyle, 1) // NSRoundedBezelStyle
+ C.objc_msgSend_uint(button, _setBezelStyle, C.uintptr_t(1)) // NSRoundedBezelStyle
C.objc_msgSend_id(button, _setTarget, appDelegate)
C.objc_msgSend_sel(button, _setAction, _buttonClicked)
// by default the button uses the wrong text size
@@ -156,7 +156,7 @@ var classTypes = [nctypes]*classData{
checkbox := objc_alloc(_NSButton)
checkbox = objc_msgSend_rect(checkbox, _initWithFrame,
0, 0, 100, 100)
- objc_msgSend_uint(checkbox, _setButtonType, 3) // NSSwitchButton
+ C.objc_msgSend_uint(checkbox, _setButtonType, C.uintptr_t(3)) // NSSwitchButton
addControl(parentWindow, checkbox)
return checkbox
},
@@ -268,7 +268,7 @@ var classTypes = [nctypes]*classData{
0, 0, 100, 100)
// TODO really int?
C.objc_msgSend_int(pbar, _setStyle, 0) // NSProgressIndicatorBarStyle
- objc_msgSend_uint(pbar, _setControlSize, 0) // NSRegularControlSize
+ C.objc_msgSend_uint(pbar, _setControlSize, C.uintptr_t(0)) // NSRegularControlSize
C.objc_msgSend_bool(pbar, _setIndeterminate, C.BOOL(C.NO))
addControl(parentWindow, pbar)
return pbar