Lazarus

Programming => Widgetset => Cocoa => Topic started by: trev on August 15, 2019, 12:26:09 am

Title: Does Cocoa use any Carbon code?
Post by: trev on August 15, 2019, 12:26:09 am
I ask because of SelectDirectory and TSelectDirectoryDialog being silently ignored on Catalina after framework "thinning" (ie removal of 32 bit).

For details see:  https://forum.lazarus.freepascal.org/index.php/topic,46387.0.html
Title: Re: Does Cocoa use any Carbon code?
Post by: skalogryz on August 15, 2019, 02:32:21 am
Carbon API is not really used  (except for HIRanges... or so... but these are graphics)

the reason on why a dialog won't open is probably due to this error:
Quote
2019-08-14 20:30:48.516 project1[2053:31333] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted
(the error is produced, even if the following code is used:
Code: [Select]
NSOpenPanel.openPanel.runModal;which is a minimal ObjC to run a file dialog)

Whatever "carbon" reference is used within Apple frameworks, is out of LCL control
Title: Re: Does Cocoa use any Carbon code?
Post by: skalogryz on August 16, 2019, 04:37:49 am
try to code-sign the project.
Title: Re: Does Cocoa use any Carbon code?
Post by: trev on August 20, 2019, 10:47:17 am
Beta 6 resolved the issue :)
Title: Re: Does Cocoa use any Carbon code?
Post by: skalogryz on August 20, 2019, 04:57:55 pm
Beta 6 resolved the issue :)
phew! that was close!