Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the equivalent of COM in Mac OS?

Tags:

macos

com

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?

like image 660
Martin08 Avatar asked Oct 27 '09 19:10

Martin08


2 Answers

I think that Getting Started with Interapplication Communication from the Mac Dev Center would be a good place to start. There is no direct equivalent to COM/OLE as far as I can tell across the entire OS, but XPCOM and CORBA can be used for some scenarios.

Distributed Objects Programming Topics is probably the best place to look for conventional Mac solutions to getting apps to talk to each other.

like image 127
JasonTrue Avatar answered Nov 04 '22 13:11

JasonTrue


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).

like image 20
Kristopher Johnson Avatar answered Nov 04 '22 12:11

Kristopher Johnson