mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 20:19:08 +02:00
cocoa: fix compilation for the newly released fpc3.2.0
git-svn-id: trunk@63409 -
This commit is contained in:
parent
e660c90155
commit
1912324bc7
@ -31,8 +31,6 @@ uses
|
|||||||
cocoa_extra, CocoaPrivate;
|
cocoa_extra, CocoaPrivate;
|
||||||
|
|
||||||
type
|
type
|
||||||
TSetDocumentViewType = {$if FPC_FULLVERSION = 30200}id{$else}NSView{$endif};
|
|
||||||
|
|
||||||
{ TCocoaScrollView }
|
{ TCocoaScrollView }
|
||||||
|
|
||||||
TCocoaScrollView = objcclass(NSScrollView)
|
TCocoaScrollView = objcclass(NSScrollView)
|
||||||
@ -51,7 +49,7 @@ type
|
|||||||
procedure resetCursorRects; override;
|
procedure resetCursorRects; override;
|
||||||
function lclClientFrame: TRect; override;
|
function lclClientFrame: TRect; override;
|
||||||
function lclContentView: NSView; override;
|
function lclContentView: NSView; override;
|
||||||
procedure setDocumentView(aView: TSetDocumentViewType); override;
|
procedure setDocumentView(aView: NSView); override;
|
||||||
procedure scrollContentViewBoundsChanged(notify: NSNotification); message 'scrollContentViewBoundsChanged:';
|
procedure scrollContentViewBoundsChanged(notify: NSNotification); message 'scrollContentViewBoundsChanged:';
|
||||||
procedure resetScrollRect; message 'resetScrollRect';
|
procedure resetScrollRect; message 'resetScrollRect';
|
||||||
|
|
||||||
@ -647,7 +645,7 @@ begin
|
|||||||
Result:=documentView;
|
Result:=documentView;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCocoaScrollView.setDocumentView(aView: TSetDocumentViewType);
|
procedure TCocoaScrollView.setDocumentView(aView: NSView);
|
||||||
begin
|
begin
|
||||||
inherited setDocumentView(aView);
|
inherited setDocumentView(aView);
|
||||||
resetScrollRect;
|
resetScrollRect;
|
||||||
|
Loading…
Reference in New Issue
Block a user