[Pythonmac-SIG] It Was A Typo! Question redressed...

Aldo Bergamini aab.lists at nb-a.com
Mon Jul 4 18:22:00 CEST 2005


Well,

it works now;

apparently somebody chose a strange name for the **synthetizer** class:

    NSSpeechSynthesizer  !!


The following method (actually copying more closely the spelling of
Hillegass' example) works:
    
    def init(self):
                    
        NSLog("init")
        
        self.speechSynth = NSSpeechSynthesizer.alloc()
        self.speechSynth.initWithVoice_(None)
        
        return self



My question is now: why do I have to skip the obj-C

    [super init]; 

line in Python?


Thanks
Aldo




More information about the Pythonmac-SIG mailing list