Recent

Author Topic: I copied and changed project name and now my application will not close  (Read 658 times)

tearsfornations

  • New Member
  • *
  • Posts: 35
  • Jesus is worth talking about.
    • Lightning Bolt Quiz - How many Lightning Bolts do you deserve?
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!
-
Used C++Builder for the longest time, got macOS, How many Lightning Bolts do you deserve? Find out at my website: https://boltquiz.org

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2065
  • Fifty shades of code.
    • Delphi & FreePascal
Try to save project, build it (shift+f9), run it (f9), does it still have the same bad behavior?
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

tearsfornations

  • New Member
  • *
  • Posts: 35
  • Jesus is worth talking about.
    • Lightning Bolt Quiz - How many Lightning Bolts do you deserve?
believe it or not, I found the issue, I had:   <key>NSPrincipalClass</key>  <string>NSApplication</string>
I removed NSApplication and it closed
(in Info.plist)

What is NSPrincipalClass supposed to be?
-
Used C++Builder for the longest time, got macOS, How many Lightning Bolts do you deserve? Find out at my website: https://boltquiz.org

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2065
  • Fifty shades of code.
    • Delphi & FreePascal
What 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.
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

 

TinyPortal © 2005-2018