Re: Hillegass book memory question

2008-06-03 Thread Randall Meadows
On Jun 3, 2008, at 2:09 AM, Uli Kusterer wrote: Am 03.06.2008 um 07:10 schrieb Adam Leonard: By the way, this shortcut is not just the result of laziness, it is actually faster. Instead of going through all the objects that are used throughout the life span of the app, and having the OS free

Re: Hillegass book memory question

2008-06-03 Thread Uli Kusterer
Am 03.06.2008 um 07:10 schrieb Adam Leonard: The Cocoa frameworks take this shortcut, as do most applications. By the way, this shortcut is not just the result of laziness, it is actually faster. Instead of going through all the objects that are used throughout the life span of the app, and

Re: Hillegass book memory question

2008-06-02 Thread Adam Leonard
Hi, I have the second edition still, but I assume this example has not changed much in the third edition. Usually, yes, you must release anything you +alloc, -retain, -copy, etc. This is a bit of a special case though. In this case, exactly one NSSpeechSynthesizer is allocated when the a

Hillegass book memory question

2008-06-02 Thread Ashley Perrien
I'm working my way through the 3rd edition and have a question specifically on speech synthesizer in chapter 5. It's my understanding that whenever something is retained or alloced they eventually need to be released. In the application built in the chapter, NSSpeechSynthesizer is alloced a