]> gitweb.factorcode.org Git - factor.git/commitdiff
cocoa.messages: fix typo and print to stderr
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 29 Jan 2023 04:18:20 +0000 (20:18 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 29 Jan 2023 04:18:20 +0000 (20:18 -0800)
basis/cocoa/messages/messages.factor

index 5775fec4af00f1ab7346ff9cbe4339365af2ec77..6b8ae883b6701773249cdfca54ee94d563197c5d 100644 (file)
@@ -220,9 +220,11 @@ ERROR: no-objc-type name ;
 : method-return-type ( method -- ctype )
     method_copyReturnType
     [
-        utf8 alien>string dup string>number
-        [ "unknown obcj return type: " prepend print f ]
-        [ parse-objc-type ] if
+        utf8 alien>string dup string>number [
+            "unknown objc return type: " prepend
+            [ print ] with-output>error
+            f
+        ] [ parse-objc-type ] if
     ] keep (free) ;
 
 : method-signature ( method -- signature )