mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: ListToNSArray() refactored to be consistent with ListToNSUrlArray()
This commit is contained in:
parent
0cea3e61bd
commit
b0f249691c
1 changed files with 4 additions and 5 deletions
|
|
@ -334,13 +334,12 @@ end;
|
|||
|
||||
function ListToNSArray(const list:TStrings): NSArray;
|
||||
var
|
||||
i: Integer;
|
||||
theArray: NSMutableArray;
|
||||
item: String;
|
||||
begin
|
||||
theArray := NSMutableArray.arrayWithCapacity(list.Count);
|
||||
for i := 0 to list.Count - 1 do
|
||||
begin
|
||||
theArray.addObject( StringToNSString(list[i]) );
|
||||
theArray := NSMutableArray.arrayWithCapacity( list.Count );
|
||||
for item in list do begin
|
||||
theArray.addObject( StringToNSString(item) );
|
||||
end;
|
||||
Result := theArray;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue