When using TTMSFMXNativeWebView, macOS issues the warning:
*** WARNING: Method convertPointToBase: in class NSView is depricated on 10.7 and later. It should not be used in new applications.
Delphi 11 Alexandria
Mac: M1 mac running Big Sur
Output: macOS 64 bit
How to get rid of this warning?
It's a bare-bone small test unit, source code is:
unit Unit1;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.TMSNativeNSBaseControl, FMX.TMSNativeWebView, FMX.TMSNativeNSCore;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.fmx}
procedure TForm1.FormCreate(Sender: TObject);
var
WebBrowser: TTMSFMXNativeWebView;
begin
WebBrowser := TTMSFMXNativeWebView.Create(self);
WebBrowser.Parent := self;
WebBrowser.Align := TAlignLayout.Client;
WebBrowser.Navigate('https://support.tmssoftware.com/');
end;
end.