From ae8ccdca197cb6b29ff25cb0c874e93ef15a153a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 28 Feb 2014 21:38:06 -0500 Subject: [PATCH] Removed the NSNotificationCenter stuff since we're not using that to run UI operations on the main thread anymore. --- darwintest/runtimetest.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/darwintest/runtimetest.go b/darwintest/runtimetest.go index 6a8149f..b894809 100644 --- a/darwintest/runtimetest.go +++ b/darwintest/runtimetest.go @@ -13,15 +13,12 @@ import "C" var ( _NSApplication = objc_getClass("NSApplication") - _NSNotificationCenter = objc_getClass("NSNotificationCenter") _sharedApplication = sel_getUid("sharedApplication") - _defaultCenter = sel_getUid("defaultCenter") _run = sel_getUid("run") ) var NSApp C.id -var defNC C.id var delegate C.id var notesel C.SEL @@ -29,8 +26,6 @@ func init() { // need an NSApplication first - see https://github.com/TooTallNate/NodObjC/issues/21 NSApp = C.objc_msgSend_noargs(_NSApplication, _sharedApplication) - defNC = C.objc_msgSend_noargs(_NSNotificationCenter, _defaultCenter) - selW := sel_getUid("windowShouldClose:") selB := sel_getUid("buttonClicked:") selN := sel_getUid("gotNotification:")