summaryrefslogtreecommitdiff
path: root/dialog_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-04 17:50:27 -0400
committerPietro Gagliardi <[email protected]>2014-04-04 17:50:27 -0400
commit3a130b756a74c24ea34a1d25a86c96c72da2d80f (patch)
tree23073c0181b915133c044afcb081a33df9187665 /dialog_darwin.go
parent1a7bf4cd8974bc116df17bccd908187a767d7e6e (diff)
Removed objc_new(). The idea is to remove all the objc_* functions that aren't prefixed with C. (except objc_getClass()).
Diffstat (limited to 'dialog_darwin.go')
-rw-r--r--dialog_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dialog_darwin.go b/dialog_darwin.go
index 677b153..302053c 100644
--- a/dialog_darwin.go
+++ b/dialog_darwin.go
@@ -31,7 +31,7 @@ func _msgBox(primarytext string, secondarytext string, style uintptr, button0 st
ret := make(chan struct{})
defer close(ret)
uitask <- func() {
- box := objc_new(_NSAlert)
+ box := C.objc_msgSend_noargs(_NSAlert, _new)
C.objc_msgSend_id(box, _setMessageText, toNSString(primarytext))
C.objc_msgSend_id(box, _setInformativeText, toNSString(secondarytext))
objc_msgSend_uint(box, _setAlertStyle, style)