Recent

Author Topic: Does Cocoa use any Carbon code?  (Read 1547 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Does Cocoa use any Carbon code?
« 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

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Does Cocoa use any Carbon code?
« Reply #1 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
« Last Edit: August 15, 2019, 02:34:31 am by skalogryz »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Does Cocoa use any Carbon code?
« Reply #2 on: August 16, 2019, 04:37:49 am »
try to code-sign the project.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Does Cocoa use any Carbon code?
« Reply #3 on: August 20, 2019, 10:47:17 am »
Beta 6 resolved the issue :)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Does Cocoa use any Carbon code?
« Reply #4 on: August 20, 2019, 04:57:55 pm »
Beta 6 resolved the issue :)
phew! that was close!

 

TinyPortal © 2005-2018