Re: { Semi-Newbie } Inverse of +initialize?
Re: { Semi-Newbie } Inverse of +initialize?
- Subject: Re: { Semi-Newbie } Inverse of +initialize?
- From: Chris Hanson <email@hidden>
- Date: Sat, 12 Oct 2002 07:37:13 -0500
While there are NSApplication delegate methods and notifications for
finding out that an application will terminate, I still strongly
believe it's a major oversight that class unloading isn't supported.
(Whether all classes should be unloaded when an application is
terminated is a separate issue, and one I care less about.)
Class and NSBundle unloading should be supported, for symmetry if
nothing else. This includes sending +terminate to classes before
they're unloaded. It should be up to the developer to make sure
there are no outstanding instances of any classes in a bundle before
that bundle is unloaded; in the cases where unloading is useful, this
is feasible.
Having bundle unloading would make it possible to do things like
dynamically load a new version of a plug-in in a running application.
After all, don't you hate having to quit and re-launch Watson so it
will use the latest plug-ins? (It's certainly not Karelia's fault
that this is necessary.)
-- Chris
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
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.