Re: NSApplication Quit bug; Another Form of it. Learning Cocoa sample shows related bug.
Re: NSApplication Quit bug; Another Form of it. Learning Cocoa sample shows related bug.
- Subject: Re: NSApplication Quit bug; Another Form of it. Learning Cocoa sample shows related bug.
- From: "David P. Henderson" <email@hidden>
- Date: Tue, 17 Jul 2001 19:13:57 -0400
On Tuesday, July 17, 2001, at 06:49 , tyler wrote:
>
I do think that the code that reanimates the objects in the NIB should
>
dispose of them (?)
>
You CREATED those objects. You are responsible for disposing of all top
level objects you create in a nib file if it is important to do so ie,
it will leak significant memory overtime. This can be as simple as
checking the Release When Closed box for a window. When you load a nib,
you cause those objects in it to be unarchived for use; therefore,
releasing them is your problem.
Dave
--
Chaos Assembly Werks
"The Trend over the last 20 years or so has been to design computer
languages that enforce a state of paranoia. You're expected to program
every module as if it were in a state of siege In Perl culture, by
contrast, you're expected to stay out of someone's home because you
weren't invited in, not because there are bars on the windows."
from Programming Perl