diff --git a/demos/cocoa/speech.factor b/demos/cocoa/speech.factor index f2e60cc877..34afd4086f 100644 --- a/demos/cocoa/speech.factor +++ b/demos/cocoa/speech.factor @@ -1,5 +1,7 @@ ! Copyright (C) 2006 Slava Pestov ! See http://factorcode.org/license.txt for BSD license. +IN: objc-classes +DEFER: NSSpeechSynthesizer IN: cocoa-speech USING: cocoa objc objc-classes kernel ; @@ -7,6 +9,7 @@ USING: cocoa objc objc-classes kernel ; "NSSpeechSynthesizer" f import-objc-class : say ( string -- ) - NSSpeechSynthesizer -> alloc f -> initWithVoice: swap -> startSpeakingString: drop ; + NSSpeechSynthesizer -> alloc f -> initWithVoice: swap + -> startSpeakingString: drop ; "Hello from Factor" say