summaryrefslogtreecommitdiff
path: root/dialog_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-15 20:14:44 -0400
committerPietro Gagliardi <[email protected]>2014-05-15 20:14:44 -0400
commitb7db0e15cda8ebd63831b19b59ebebb5236d3bcf (patch)
tree15703d21a32cd727641599fa0a9638755d5506bd /dialog_darwin.go
parent9d8976ababebfd7ce670cdb05e3bc303ac466bf6 (diff)
Removed all the objc_getClass() and sel_getUid() calls from the Go code on Mac OS X. Also got rid of a forgotten objc_msgSend(). Now comes the Objective-C half...
Diffstat (limited to 'dialog_darwin.go')
-rw-r--r--dialog_darwin.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/dialog_darwin.go b/dialog_darwin.go
index 0d1d388..2ba4d6a 100644
--- a/dialog_darwin.go
+++ b/dialog_darwin.go
@@ -11,23 +11,6 @@ import (
// #include "dialog_darwin.h"
import "C"
-// NSAlert styles.
-const (
- _NSWarningAlertStyle = 0 // default
- _NSInformationalAlertStyle = 1
- _NSCriticalAlertStyle = 2
-)
-
-var (
- _NSAlert = objc_getClass("NSAlert")
-
- _setMessageText = sel_getUid("setMessageText:")
- _setInformativeText = sel_getUid("setInformativeText:")
- _setAlertStyle = sel_getUid("setAlertStyle:")
- _addButtonWithTitle = sel_getUid("addButtonWithTitle:")
- _runModal = sel_getUid("runModal")
-)
-
func _msgBox(primarytext string, secondarytext string, style uintptr) {
ret := make(chan struct{})
defer close(ret)