what is the equivalent of COM in Mac OS?

com, macos

Solution

Cocoa/Objective-C objects are pretty much all you need. At a higher level, NIBs can be reusable between applications, although I don't think that is widely done.

You can write plug-ins for Interface Builder to use your own components like the standard ones.

Apple Events and AppleScript are the standard IPC and scripting technologies.

However, unlike COM in the Windows world, there are really no standard conventions for components that interact with one another via standard interfaces, live in standard containers, participate in transactions, etc. There is no analogue to a type library or IDL (although a scripting dictionary may come close).

Problem

I'm new to the world of Mac programming. Can someone please tell me what the equivalent of reusable COM components are in Mac and some links to a good resource to get started (in creating reusable COM-like components and referring those components from a calling app)? Thank you. Clarification: - I wish to know if there exist a similar technology, which is supported at OS level. - I asked the question because I want to port some of my apps (which make use of existing type libraries from Windows as well as those that I make) to Mac. - Is it possible that I create wrapper classes for my existing (Window) type libraries and refer to them from a Mac app?

Original source