wxWidgets in a dynamic library on MacOS Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
User avatar
vouk
Earned a small fee
Earned a small fee
Posts: 21
Joined: Fri Feb 15, 2019 7:34 am
Location: Germany
Contact:

wxWidgets in a dynamic library on MacOS

Post by vouk » Tue Mar 17, 2020 11:08 am

On windows I successfully use WxWidgets in a plugin DLL (for Adobe products) using this approach:

https://simon.rozman.si/computers/wxwid ... dll-plugin

Now I'd like to do this with MacOS / Cocoa in XCode with WxWidgets 3.1.3.

Did anybody do this already or knows how to do this?

I'd just like to show a modal wxDialog to configure some settings and then return to the plugin.

User avatar
vouk
Earned a small fee
Earned a small fee
Posts: 21
Joined: Fri Feb 15, 2019 7:34 am
Location: Germany
Contact:

Re: wxWidgets in a dynamic library on MacOS

Post by vouk » Wed Mar 18, 2020 10:49 am

Can't believe it was so simple.
Seems the event loop on a Mac does not need these kind of hacks:

Code: Select all

(new wxApp());
wxInitialize();

myDialog dia; // keep parent == NULL
int res = dia.ShowModal();

Post Reply