Change wxRendererNative to use NSCell-based methods under Mac

Use wxOSX_USE_NSCELL_RENDERER to allow setting it to 0 to revert to the
old code.

Note that the new version is Objective C++, so the old .cpp file had to
be renamed to have .mm extension.

Closes #24053.

Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>
This commit is contained in:
Stefan Csomor 2023-11-12 09:51:59 +01:00 committed by Vadim Zeitlin
parent 1d7f2becd4
commit 21da0e128d
7 changed files with 8899 additions and 8583 deletions

View file

@ -2036,7 +2036,6 @@ set(OSX_COMMON_SRC
src/osx/carbon/mdi.cpp
src/osx/carbon/metafile.cpp
src/osx/carbon/popupwin.cpp
src/osx/carbon/renderer.cpp
src/osx/carbon/statbrma.cpp
src/osx/carbon/region.cpp
# cocoa bridge
@ -2212,6 +2211,7 @@ set(OSX_COCOA_SRC
src/osx/core/sound.cpp
src/osx/cocoa/statbmp.mm
src/osx/core/display.cpp
src/osx/cocoa/renderer.mm
)
set(OSX_COCOA_HDR