From b7db0e15cda8ebd63831b19b59ebebb5236d3bcf Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 15 May 2014 20:14:44 -0400 Subject: 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... --- uitask_darwin.go | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'uitask_darwin.go') 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() -- cgit v1.2.3