]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/backend/cocoa/cocoa.factor
change add-init-hook to add-startup-hook, new add-shutdown-hook word
[factor.git] / basis / ui / backend / cocoa / cocoa.factor
index 0213b8433c900d01ed84d2dc71d8cef14a43541b..84e55ed1344a79e01876464737caba1e25506751 100755 (executable)
@@ -225,9 +225,9 @@ CLASS: {
 : install-app-delegate ( -- )
     NSApp FactorApplicationDelegate install-delegate ;
 
-SYMBOL: cocoa-init-hook
+SYMBOL: cocoa-startup-hook
 
-cocoa-init-hook [
+cocoa-startup-hook [
     [ "MiniFactor.nib" load-nib install-app-delegate ]
 ] initialize
 
@@ -235,7 +235,7 @@ M: cocoa-ui-backend (with-ui)
     "UI" assert.app [
         [
             init-clipboard
-            cocoa-init-hook get call( -- )
+            cocoa-startup-hook get call( -- )
             start-ui
             f io-thread-running? set-global
             init-thread-timer