Merged revision(s) 63028 #7125b6ce7e, 63409 #1912324bc7 from trunk:

cocoa: update override of setDocumentView() method to be compatible with fpc prior to and after fpc3.2
........
cocoa: fix compilation for the newly released fpc3.2.0
........

git-svn-id: branches/fixes_2_0@63418 -
This commit is contained in:
dmitry 2020-06-22 02:32:58 +00:00
parent 27188db548
commit a1b4ea9057

View File

@ -31,7 +31,6 @@ uses
cocoa_extra, CocoaPrivate;
type
{ TCocoaScrollView }
TCocoaScrollView = objcclass(NSScrollView)
@ -50,9 +49,7 @@ type
procedure resetCursorRects; override;
function lclClientFrame: TRect; override;
function lclContentView: NSView; override;
procedure setDocumentView(aView:
{$if FPC_FULLVERSION < 30200}NSView{$else}id{$endif}
); override;
procedure setDocumentView(aView: NSView); override;
procedure scrollContentViewBoundsChanged(notify: NSNotification); message 'scrollContentViewBoundsChanged:';
procedure resetScrollRect; message 'resetScrollRect';
@ -648,7 +645,7 @@ begin
Result:=documentView;
end;
procedure TCocoaScrollView.setDocumentView(aView: {$if FPC_FULLVERSION < 30200}NSView{$else}id{$endif});
procedure TCocoaScrollView.setDocumentView(aView: NSView);
begin
inherited setDocumentView(aView);
resetScrollRect;