Remove cocoa.callbacks since nothing uses it

db4
Slava Pestov 2010-07-06 17:45:50 -04:00
parent 8a0525e5ce
commit 1106c03318
4 changed files with 0 additions and 36 deletions

View File

@ -1 +0,0 @@
Kevin P. Reid

View File

@ -1,33 +0,0 @@
! Copyright (C) 2005, 2006 Kevin Reid.
! See http://factorcode.org/license.txt for BSD license.
USING: alien.c-types assocs kernel namespaces cocoa
cocoa.classes cocoa.runtime cocoa.subclassing debugger ;
IN: cocoa.callbacks
SYMBOL: callbacks
: reset-callbacks ( -- )
H{ } clone callbacks set-global ;
reset-callbacks
CLASS: {
{ +name+ "FactorCallback" }
{ +superclass+ "NSObject" }
}
{ "perform:" void { id SEL id }
[ 2drop callbacks get at try ]
}
{ "dealloc" void { id SEL }
[
drop
dup callbacks get delete-at
SUPER-> dealloc
]
} ;
: <FactorCallback> ( quot -- id )
FactorCallback -> alloc -> init
[ callbacks get set-at ] keep ;

View File

@ -1 +0,0 @@
macosx

View File

@ -1 +0,0 @@
Allows you to use Factor quotations as Cocoa actions