Lazarus

Programming => Widgetset => Cocoa => Topic started by: MISV on September 16, 2020, 10:41:50 am

Title: Bug introduced? mainFrame.DomDocument no longer is a member
Post by: MISV on September 16, 2020, 10:41:50 am
I recently updated Lazarus and  LCL Cocoa and suddenly I am getting compile-time error

Quote
Error: Identifier idents no member "DomDocument"

at line

Code: Pascal  [Select][+][-]
  1. FWebView_Cocoa.mainFrame.DomDocument

It should be there accordingly to documentation

https://developer.apple.com/documentation/webkit/webframe/1494248-domdocument

... Albeit I am of course using 10.15.6 and UIWebView is deprecated... But I need to use until support for WKWebView is complete (and to be honest I am also not that keen on learning/testing a new browser control)

Anyhow... Is this compile time error a thing in MacOS or has something in LCL Cocoa team accidently removed something?
Title: Re: Bug introduced? mainFrame.DomDocument no longer is a member
Post by: MISV on September 17, 2020, 02:02:58 pm
Moved to: https://forum.lazarus.freepascal.org/index.php/topic,51470.0.html (https://forum.lazarus.freepascal.org/index.php/topic,51470.0.html)
Title: Re: Bug introduced? mainFrame.DomDocument no longer is a member
Post by: skalogryz on September 17, 2020, 09:54:55 pm
Is this compile time error a thing in MacOS or has something in LCL Cocoa team accidently removed something?
LCL Cocoa team doesn't manage Cocoa headers.
Those come with FPC, and it sounds it was removed with fpc 3.2

You might want to introduce your own supplemental file with ObjC declarations, similar to cocoa_extra.pas in Cocoa widget
TinyPortal © 2005-2018