Recent

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

trev

  • Full Member
  • ***
  • Posts: 156
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
o Lazarus v2.1.0 r61676, FPC v3.3.1 r42640, macOS 10.14.6 (with supplemental update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2235
    • 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 »
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2235
    • 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.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz