• 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: Does NSSound not work in a Unix tool? - SOLUTION
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Does NSSound not work in a Unix tool? - SOLUTION (From: Uli Zappe <email@hidden>)

  • Prev by Date: Re: Simple newbie problem: Static variables in Objective-C?
  • Next by Date: Re: Simple newbie problem: Static variables in Objective-C?
  • Previous by thread: Re: Does NSSound not work in a Unix tool? - SOLUTION
  • Next by thread: An other silly PrefPane problem
  • Index(es):
    • Date
    • Thread