Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications
Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications
- Subject: Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications
- From: Peter Ammon <email@hidden>
- Date: Fri, 11 Jul 2008 16:58:05 -0700
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' or a bug?
This is a bug in NSSpeechSynthesizer. You can work around it for now
by keeping a reference to the speech synthesizer, or CFRetaining it
and then CFReleasing it in the speechSynthesizer:didFInishSpeaking:
delegate callback.
-Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden