Re: uninitialize
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>) |