Listview1.SelectAll
doesn't work in Cocoa. It works in Windows and Linux.procedure select_all(tt :tlistview);
var
i:integer;
begin
tt.Items.BeginUpdate;
for i := 0 to tt.Items.Count-1 do tt.Items[i].Selected:=true;
tt.Items.EndUpdate;
tt.setfocus;{set focus for next ctrl-C. Somehow it is lost}
end;
Yes, in my test it was set true. Once in the OI and once in code, to be sure, to be sure.how does it work on r63183?
Compiling cocoawscomctrls.pas
Compiling cocoatabcontrols.pas
cocoatabcontrols.pas(161,3) Note: Local variable "r" not used
cocoatabcontrols.pas(242,3) Note: Local variable "x" not used
cocoatabcontrols.pas(242,5) Note: Local variable "y" not used
cocoatabcontrols.pas(251,3) Note: Local variable "v" not used
cocoatabcontrols.pas(437,3) Note: Local variable "idx" not used
cocoatabcontrols.pas(480,3) Note: Local variable "r" not used
Assembling (pipe) ../../units/x86_64-darwin/cocoa/cocoatabcontrols.s
<stdin>:51526:10: warning: section "__datacoal_nt" is deprecated
.section __DATA, __datacoal_nt, coalesced
^ ~~~~~~~~~~~~~~
<stdin>:51526:10: note: change section name to "__data"
.section __DATA, __datacoal_nt, coalesced
^ ~~~~~~~~~~~~~~
<stdin>:51575:10: warning: section "__datacoal_nt" is deprecated
.section __DATA, __datacoal_nt, coalesced
^ ~~~~~~~~~~~~~~
<stdin>:51575:10: note: change section name to "__data"
.section __DATA, __datacoal_nt, coalesced
^ ~~~~~~~~~~~~~~
cocoawscomctrls.pas(639,3) Note: Local variable "lTitle" not used
cocoawscomctrls.pas(818,13) Warning: Range check error while evaluating constants (9223372036854775807 must be between -2147483648 and 2147483647)
cocoawscomctrls.pas(896,3) Note: Local variable "lOldTabStyle" is assigned but never used
cocoawscomctrls.pas(909,3) Note: Local variable "lOldTabStyle" is assigned but never used
cocoawscomctrls.pas(1305,3) Warning: Case statement does not handle all possible cases
cocoawscomctrls.pas(1559,3) Fatal: Syntax error, ";" expected but "ELSE" found
Fatal: Compilation aborted
make[3]: *** [../lcl.ppu] Error 1
make[2]: *** [cocoa_all] Error 2
make[1]: *** [interfaces] Error 2
make: *** [lcl] Error 2
trev@macmini6 [/Users/trev/lazarus-src] $