Recent

Author Topic: Problems generating automatic Apple menu [SOLVED]  (Read 3127 times)

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
Problems generating automatic Apple menu [SOLVED]
« on: June 22, 2017, 10:12:12 pm »
Hello, I have been following the instructions on http://wiki.lazarus.freepascal.org/Mac_Preferences_and_About_Menu in order to automatically generate Apple menu items. It works well apart from one small problem, namely that the MenuItem with the app name is all in lowercase, despite having been originally entered in CamelCase.

Does anyone know how I can get the menu option to display in CamelCase?
« Last Edit: June 27, 2017, 11:45:22 am by carl_caulkett »
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Problems generating automatic Apple menu
« Reply #1 on: June 22, 2017, 10:28:59 pm »
I think that is based on the project filename.


So for example if you save the project as "MyApplication", the menu will show correctly "MyApplication".


Changing the title in the project options does not seem to have an effect (which is probably a minor bug?).

carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
Re: Problems generating automatic Apple menu
« Reply #2 on: June 23, 2017, 10:12:15 am »
I tried changing the title in the project options, and, as you suggested, it didn't make any difference. I then tried saving the project as CodePreview - it still didn't make any difference.
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

Hansaplast

  • Hero Member
  • *****
  • Posts: 674
  • Tweaking4All.com
    • Tweaking4All
Re: Problems generating automatic Apple menu
« Reply #3 on: June 23, 2017, 03:53:52 pm »
Did you try saving the project files as "CodePreview"?


In Lazarus;
   Menu "Project" -> "Save Project As" -> "CodePreview.lpi" ?

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Problems generating automatic Apple menu
« Reply #4 on: June 23, 2017, 03:54:58 pm »
I tried changing the title in the project options, and, as you suggested, it didn't make any difference. I then tried saving the project as CodePreview - it still didn't make any difference.

See FAQ 11 here:

https://macpgmr.github.io/ObjP/ProjectXC.html


carl_caulkett

  • Sr. Member
  • ****
  • Posts: 306
Re: Problems generating automatic Apple menu
« Reply #5 on: June 27, 2017, 11:44:57 am »
Cool. That works! Thanks a lot, Phil.
"It builds... ship it!"

Mac Mini M1
macOS 13.6 Ventura
Lazarus 2.2.6 (release version)
FPC 3.2.2 (release version)

 

TinyPortal © 2005-2018