cocoa: fix compilation for the newly released fpc3.2.0

git-svn-id: trunk@63409 -
This commit is contained in:
dmitry 2020-06-20 23:05:28 +00:00
parent e660c90155
commit 1912324bc7

View File

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