• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSSpeechSynthesizer lifetime and garbage collected (GC) applications (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Search NSString for a word and get a boolean value
  • Next by Date: Objective-C default initialization
  • Previous by thread: Re: NSSpeechSynthesizer lifetime and garbage collected (GC) applications
  • Next by thread: Trashing files and undo
  • Index(es):
    • Date
    • Thread