Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications

2008-07-11 Thread Peter Ammon
Hi Sean, On Jul 11, 2008, at 7:20 AM, Sean McBride wrote: Hi all, The following works just fine in non-GC apps when called in an IBAction method: [] I'm guessing this is because the speechSynthesizer is collected before it finishes speaking. Good guess! Is this 'correct behaviour' o

Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications

2008-07-11 Thread Quincey Morris
On Jul 11, 2008, at 15:08, Sean McBride wrote: Meaning you agree with me that it shouldn't be my job to keep a strong reference until its finished speaking? Whose job was it to keep a reference count on it under non-GC conditions? You weren't doing it in the code you posted, apparently. I

Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications

2008-07-11 Thread Clark Cox
On Fri, Jul 11, 2008 at 3:08 PM, Sean McBride <[EMAIL PROTECTED]> wrote: > On 7/11/08 10:36 AM, Clark Cox said: > >>> I'm guessing this is because the speechSynthesizer is collected before >>> it finishes speaking. Is this 'correct behaviour' or a bug? Needless >>> to say, the docs say nothing ab

Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications

2008-07-11 Thread Sean McBride
On 7/11/08 10:36 AM, Clark Cox said: >> I'm guessing this is because the speechSynthesizer is collected before >> it finishes speaking. Is this 'correct behaviour' or a bug? Needless >> to say, the docs say nothing about special considerations for garbage >> collection. My speechSynthesizer has

Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications

2008-07-11 Thread Clark Cox
On Fri, Jul 11, 2008 at 7:20 AM, Sean McBride <[EMAIL PROTECTED]> wrote: > Hi all, > > The following works just fine in non-GC apps when called in an IBAction > method: > >NSSpeechSynthesizer* speechSynthesizer = >[[[NSSpeechSynthesizer alloc] init] autorelease]; >[speechSynthes

NSSpeechSynthesizer lifetime and garbage collected (GC) applications

2008-07-11 Thread Sean McBride
Hi all, The following works just fine in non-GC apps when called in an IBAction method: NSSpeechSynthesizer* speechSynthesizer = [[[NSSpeechSynthesizer alloc] init] autorelease]; [speechSynthesizer startSpeakingString: @"Hello. I'm Macintosh. It sure is great to get out of