• 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: uninitialize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uninitialize


  • Subject: Re: uninitialize
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 3 Mar 2004 16:22:20 +0100

On 3. Mar 2004, at 15:48, Stefan Fisk wrote:

i've got some class-specific stuff setup in +initalize, and i was wondering if there's something like -dealloc for the class-object, or what does happend when your class gets unloaded from the runtime?

Classes doesn't get unloaded, a tad irritating if you design an app which uses plugins in the form of classes, as there is no way (AFAIK) to "flush" the loaded plugins.

At program exit, all memory is just released to the system.

What you can do is either a) take a notification on applicationWillShutdown or similar or b) use (Objective-)C++ and have an object as static data, which will get the destructor invoked when the program exists.
_______________________________________________
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: 
 >uninitialize (From: Stefan Fisk <email@hidden>)

  • Prev by Date: Re: Changing NSTableView cell editing behaviour
  • Next by Date: Re: NSURLConnection vs. CURLHandle vs. Others
  • Previous by thread: uninitialize
  • Next by thread: Re: uninitialize
  • Index(es):
    • Date
    • Thread