I'm running Ventura, 13.6.4, while Carbon was only available until Catalina, 10.15, so that's right, my Mac doesn't support it.
CocoaAll means the name of the unit I include, and that that's my only reference to anything Mac specific. To clarify: I'm not using any NSGraphicsContext.inc specifically, but that it only got involved by referring to the CocoaAll unit.
I am using the LCL, and yes, for apps I can set Cocoa, but not for packages (which should work on multiple widgetsets, that's right, but which shouldn't fail on a post-Carbon Mac trying to compile a package!).
Here's the source I'm working on:
https://gitlab.com/ccrdude-pascal/firefly-macosI'm trying to create a LCL component making it easier to provide a form with a NSToolbar.
Here's my thread in this forum about it:
https://forum.lazarus.freepascal.org/index.php/topic,66309.0.htmlAnd user Hansaplast, trying up to date trunk builds of aarch64-darwin-cocoa, had the same issue with the package.
I guess it leads to this question: which widgetset does the IDE pick to compile for when compiling a package?
Once the package has been added to the current project, it will be built with the projects current setting when recompiling the project, and later probably the same when directly compiling the package, but what is when the package is really new, hasn't been added to project or IDE yet?