Mac os x Component equivalent of an object model

I am trying to port an application that I wrote in Qt from a Windows platform to a Mac OS X platform.

The application is relatively simple: It asks the user for a document (either MS Word or an OOo Writer document). It runs this document internally and replaces various text elements with other data (Think Mailmerge). It launches the application and replaces the text with QAxObject, which is a wrapper for COM.

Now I want to port this to Mac OS X. I installed Qt Creator on Mac, etc., but obivously COM is a Windows technology not available for Mac OS X. Therefore, I was looking for Mac OS X methods that look like COM.

I'm currently particularly interested in using the OOo API http://api.openoffice.org/ .

I would like some pointers which methods should I look at. I also agree that this is simply not possible at all.

Thanks in advance.

+3
source share
2 answers

Some information on COM on OS X can be found in this 2004 article from O'Reilly MacDevCenter.


From the description of your problem, however, you are looking for something that works with Apple Events. Apple has developed a whole language for working with Apple Events, so most people equate them with the AppleScript language. You will want to start exploring the scripting area of ​​GUI applications with an exploration of AppleScript or Apple Events.

"" "" "", . , ( , - ).

( ) , , "" " ".

+3

- OOo, UNO, , OpenOffice?

.

0

Source: https://habr.com/ru/post/1758342/


All Articles