Re: Does NSSound not work in a Unix tool? - SOLUTION
Re: Does NSSound not work in a Unix tool? - SOLUTION
- Subject: Re: Does NSSound not work in a Unix tool? - SOLUTION
- From: Andy Lee <email@hidden>
- Date: Fri, 22 Mar 2002 14:20:54 -0500
At 7:37 PM +0100 3/22/02, Uli Zappe wrote:
Finally, I have removed [pool release]; which is superfluous since
the program is terminating anyway. Does anybody know why Apple even
uses it in its Unix Tool template? Is it just for
aesthetic/educational value?
IMO it's a good idea to leave the [pool release] in, partly as a
matter of habit and style.
An important reason for putting it there in the first place is that
you may have objects whose -dealloc methods do more than reclaim
memory. They may clean up temporary files, for example, or close
database connections. Exiting the process without releasing objects
will only reclaim memory, and will leave those temp files lying
around or leave an open zombie database connection.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.