Adding a "View" menu causes problems when opened
Original Reporter info from Mantis: MIS5
-
Reporter name:
Original Reporter info from Mantis: MIS5
- Reporter name:
Description:
If you have a main menu items called "View" - it will crash the software if you open the menu.
Steps to reproduce:
When TMainMenu "View" menu shows/opens (either by clicking it or hovering over the item with open menu) I get the follow error in Lazarus/Cocoa/1.9.0/Trunk/20thjune2018
RunError(216) in cocoa/cocoawsmenus.pas line 340
[code=pascal]procedure TCocoaMenuItem.menuNeedsUpdate(AMenu: NSMenu);
begin
menuItemCallback.ItemSelected;
end;[/code]
Additional information:
Chris provided this explanation which solved the issue:
Does your program work if you rename the "View" menu to have the caption "Display". MacOS automatically appends the menu item "Enter Full Screen" to any menu named "View" (it also adds "Start Dictation" and "Emoji & Symbols" to your Edit menu).
...
Forum thread:
http://forum.lazarus.freepascal.org/index.php?topic=41656
Mantis conversion info:
- Mantis ID: 33906
- OS: Mac
- OS Build: 10.13.5
- Build: newest trunk from 20th June 2019
- Platform: Lazarus Mac Coca
- Version: 1.8.5 (SVN)