Re: [Q] COM and dynamic link library?
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