• 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
{ Semi-Newbie } Inverse of +initialize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

{ Semi-Newbie } Inverse of +initialize?


  • Subject: { Semi-Newbie } Inverse of +initialize?
  • From: Richard Kendall Wolf <email@hidden>
  • Date: Fri, 11 Oct 2002 16:45:02 -0500

Just curious ... is there any sort of an inverse of the +initialize factory method? ... something like +cleanup? ... a factory method that will be called for every class, say, just before an application terminates? ... so that the class can deallocate any private data pointed to by static variables?

I mean, I know it doesn't matter because the data will be freed anyway when the application terminates ... it just rubs me the wrong way that I can allocate storage in +initialize, but there is no way I can think of to explicitly deallocate it other than use an NSApplication delegate to free the data when a user quits the app ... or explicitly when the application is a Foundation tool.
_______________________________________________
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.
  • Follow-Ups:
    • Re: { Semi-Newbie } Inverse of +initialize?
      • From: Chris Hanson <email@hidden>
    • RE: { Semi-Newbie } Inverse of +initialize?
      • From: "Jeff Evans" <email@hidden>
    • Re: { Semi-Newbie } Inverse of +initialize?
      • From: "John C. Randolph" <email@hidden>
    • Re: { Semi-Newbie } Inverse of +initialize?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Toronto cocoa programmers?
  • Next by Date: Re: Counting lines
  • Previous by thread: Re: Application is crashing if it runs for long time (On NSTask)
  • Next by thread: Re: { Semi-Newbie } Inverse of +initialize?
  • Index(es):
    • Date
    • Thread