Recent

Author Topic: Bug introduced? mainFrame.DomDocument no longer is a member  (Read 1202 times)

MISV

  • Hero Member
  • *****
  • Posts: 792
Bug introduced? mainFrame.DomDocument no longer is a member
« 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?

MISV

  • Hero Member
  • *****
  • Posts: 792

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Bug introduced? mainFrame.DomDocument no longer is a member
« Reply #2 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