Also not sure what "ReadOnly" implies in the name TCocoaReadOnlyComboBox.Well, "ReadOnly" implies that you can't change anything in it.
The ComboBox is marked as ReadOnly:=False, but of course this could be named as such for other reasons.
Non-readonly ComboBox is implemented via NSComboBox type. Readonly combobox is implemented via NSPopupButton
Maybe you really use the wrong control
From here: https://wiki.freepascal.org/Cocoa_Internals/Text_Controls (https://wiki.freepascal.org/Cocoa_Internals/Text_Controls)QuoteNon-readonly ComboBox is implemented via NSComboBox type. Readonly combobox is implemented via NSPopupButton
Actually ... no.
Initially I had it set to ReadOnly := true, but I changed that to ReadOnly := False once I noticed the "ReadOnly" part in the procedure name figuring it would not use this procedure.
I tried: Lazarus 4.99 (rev main_4_99-1960-gb2a22bea0d) FPC 3.3.1 x86_64-darwin-cocoa
(3104) Compiling synhighlighterhashentries.pas
(3104) Compiling synhighlighterpython.pas
/Users/hans/lazarus/fpcupdeluxe/lazarus/components/synedit/synhighlighterpython.pas(549,41) Error: (3035) Range check error while evaluating constants
/Users/hans/lazarus/fpcupdeluxe/lazarus/components/synedit/synhighlighterpython.pas(1250) Fatal: (10026) There were 1 errors compiling module, stopping
make[1]: *** [lazbuildlclpackages] Error 2
make: *** [lazbuild] Error 2
Fatal: (1018) Compilation aborted