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

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.

  • Follow-Ups:
    • Re: { Semi-Newbie } Inverse of +initialize?
      • From: Andreas Mayer <email@hidden>
References: 
 >{ Semi-Newbie } Inverse of +initialize? (From: Richard Kendall Wolf <email@hidden>)

  • Prev by Date: Re: Sorting a TableView in tableView:setObjectValue:forTableColumn:row:
  • Next by Date: Re: Connecticut or NYC developers
  • Previous by thread: RE: { Semi-Newbie } Inverse of +initialize?
  • Next by thread: Re: { Semi-Newbie } Inverse of +initialize?
  • Index(es):
    • Date
    • Thread