Hi,
Since I am giving up fixing fpc source and making Lazarus accept the new units files when compiling (works fine when browsing code) I am reimplementing all WKxxxx declarations myself.
OK, so having said that, adding WKFrameInfo to my own unit cause a problem...
Type
WKFrameInfo = objcclass external (NSObject, NSCopyingProtocol)
public
function isMainFrame: ObjCBOOL: message 'isMainFrame';
function request: NSURLRequest: message 'request';
function copyWithZone (zone: NSZonePtr): id; message 'copywithzone:';
end;
gives error
"Error: Duplicate identifier "zone"
"Hint: Identifier already defined in unit OBJCBASE: objcbase,pp at line 134
OK... And so it is as a function in
"NSObject = objcclass external (NSObjectProtocol)"... How do I fix this?
....
Kinda mystified I tried to include unit
objcbase in my uses list and that gives error
"Error: Duplicate identifier "OBJCBASE"
(notice case)
I guess this is somehow added implicitly
Quick note: Anyone wanting to use the WKWebView browser for the utmost non-trivial things will need the WKxxxx declarations but will either need to fix source themselves or recompile and while checking generated files I have recompiled those I wanted it simply will not work in Lazarus:
https://forum.lazarus.freepascal.org/index.php/topic,42001.msg428233.html#msg428233