I copied and changed project name and now my application will not
close
lazarus / 33-macOS - Mac OS X
----------------------------------------------------------------------
tearsfornations · 2023-04-15 09:28
I have lazarus open, and when I click the "Play" button, the
application starts, but when I click the red x it will not close.
If I right click the dock icon and click Quit, it does not close
either.
The only way it closes is if I go to the Terminal and run it in the
terminal, then the close works.
Any ideas?
I'm new to macos and lazarus (but I have Delphi/C++Builder experience)
Thank you!
----------------------------------------------------------------------
KodeZwerg · 2023-04-15 09:45
Try to save project, build it (shift+f9), run it (f9), does it still
have the same bad behavior?
----------------------------------------------------------------------
tearsfornations · 2023-04-15 09:47
believe it or not, I found the issue, I had:
NSPrincipalClass NSApplication
I removed NSApplication and it closed
(in Info.plist)
What is NSPrincipalClass supposed to be?
----------------------------------------------------------------------
KodeZwerg · 2023-04-15 10:24
Quote from: tearsfornations on April 15, 2023, 11:47:48 amWhat is
NSPrincipalClass supposed to be?Sorry that I just can answer that with
a link.
One Example for using it in your own projects you will find in the
CEF4Delphi project where it is some kind of bridge between Cocoa and
your App.