Cocoa: improve TCocoaTableListView.initWithFrame() compatibility

This commit is contained in:
rich2014 2023-12-06 00:40:48 +08:00
parent cccd1f28b8
commit f86dc6fdc1

View File

@ -557,7 +557,8 @@ end;
function TCocoaTableListView.initWithFrame(frameRect: NSRect): id;
begin
Result:=inherited initWithFrame(frameRect);
setStyle( CocoaConfig.CocoaTableViewStyle );
if NSAppkitVersionNumber >= NSAppKitVersionNumber11_0 then
setStyle( CocoaConfig.CocoaTableViewStyle );
end;
procedure TCocoaTableListView.mouseDown(event: NSEvent);