From d1666854e825f5dc6c69389c02dcc1a1ae1382eb Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sat, 16 Apr 2011 19:12:08 -0700 Subject: [PATCH] ui.backend.cocoa: simplify system-alert implementation now that callbacks bug has been fixed --- basis/ui/backend/cocoa/cocoa.factor | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/basis/ui/backend/cocoa/cocoa.factor b/basis/ui/backend/cocoa/cocoa.factor index 1e7777d9d7..e211e31374 100644 --- a/basis/ui/backend/cocoa/cocoa.factor +++ b/basis/ui/backend/cocoa/cocoa.factor @@ -217,7 +217,6 @@ M: cocoa-ui-backend beep ( -- ) NSBeep ; M: cocoa-ui-backend system-alert - invalidate-run-loop-timers NSAlert -> alloc -> init -> autorelease [ { [ swap -> setInformativeText: ] @@ -225,8 +224,7 @@ M: cocoa-ui-backend system-alert [ "OK" -> addButtonWithTitle: drop ] [ -> runModal drop ] } cleave - ] [ 2drop ] if* - init-thread-timer ; + ] [ 2drop ] if* ; CLASS: FactorApplicationDelegate < NSObject [