Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uninitialize



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.