]> gitweb.factorcode.org Git - factor.git/commitdiff
cocoa.messages: use ERROR:.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 29 Mar 2013 20:21:42 +0000 (13:21 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 29 Mar 2013 21:18:57 +0000 (14:18 -0700)
basis/cocoa/messages/messages.factor

index 543415267df857502fa402734d75f0065f164161..f1e2402e848f8904913df45c1c1c130e89934c65 100644 (file)
@@ -53,9 +53,10 @@ SYMBOL: objc-methods
 
 objc-methods [ H{ } clone ] initialize
 
+ERROR: no-objc-method name ;
+
 : lookup-method ( selector -- method )
-    dup objc-methods get at
-    [ ] [ "No such method: " prepend throw ] ?if ;
+    dup objc-methods get at [ ] [ no-objc-method ] ?if ;
 
 MEMO: make-prepare-send ( selector method super? -- quot )
     [