diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-15 20:14:44 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-15 20:14:44 -0400 |
| commit | b7db0e15cda8ebd63831b19b59ebebb5236d3bcf (patch) | |
| tree | 15703d21a32cd727641599fa0a9638755d5506bd /uitask_darwin.go | |
| parent | 9d8976ababebfd7ce670cdb05e3bc303ac466bf6 (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 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go index ad63d29..79cd5c3 100644 --- a/uitask_darwin.go +++ b/uitask_darwin.go @@ -15,19 +15,6 @@ import "C" var uitask chan func() -var ( - _NSAutoreleasePool = objc_getClass("NSAutoreleasePool") - _NSValue = objc_getClass("NSValue") - - _valueWithPointer = sel_getUid("valueWithPointer:") - _performSelectorOnMainThread = - sel_getUid("performSelectorOnMainThread:withObject:waitUntilDone:") - _stop = sel_getUid("stop:") - _postEventAtStart = sel_getUid("postEvent:atStart:") - _pointerValue = sel_getUid("pointerValue") - _run = sel_getUid("run") -) - func ui(main func()) error { runtime.LockOSThread() @@ -58,15 +45,6 @@ func ui(main func()) error { // TODO move to init_darwin.go? -var ( - _NSApplication = objc_getClass("NSApplication") - - _sharedApplication = sel_getUid("sharedApplication") - _setActivationPolicy = sel_getUid("setActivationPolicy:") - _activateIgnoringOtherApps = sel_getUid("activateIgnoringOtherApps:") - // _setDelegate in sysdata_darwin.go -) - func initCocoa() (err error) { C.initBleh() // initialize bleh_darwin.m functions makeAppDelegate() |
