• 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: [Q] COM and dynamic link library?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] COM and dynamic link library?


  • Subject: Re: [Q] COM and dynamic link library?
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 19 Apr 2006 14:18:21 -0700

On Apr 19, 2006, at 3:21 AM, Greg Herlihy wrote:

Why is the COM necessary?

COM provides a language independent and robust (if supremely annoying and hard to work with) object transport mechanism that is not as fragile as direct connections between objects.

In short, it solves the versioning problem.

COM also allows you to bundle some dynamic C code that you may wish to unload during execution. ObjC classes cannot [currently] be unloaded, but COM allows you to make truly dynamic plug-ins, such as for version checking, one-shot uses, etc. In the MacFOH device library, I will sometimes write a COM plug-in to detect and test compatibility for devices, upload firmware, etc, and then load a NSBundle with any support functions and categories once it is determined that device support is feasible; but the COM executable/ zone is discarded from memory when no longer needed.
--
Shaun Wexler
MacFOH
http://www.macfoh.com


Efficiency is intelligent laziness.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: [Q] COM and dynamic link library? (From: Greg Herlihy <email@hidden>)

  • Prev by Date: Re: Keys of the kingdom
  • Next by Date: Re: object Allocation
  • Previous by thread: Re: [Q] COM and dynamic link library?
  • Next by thread: KVC on an array in an NSDictionary
  • Index(es):
    • Date
    • Thread