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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to