Recent

Author Topic: How future "safe" is Carbon - anyone knows?  (Read 28582 times)

trev

  • Hero Member
  • *****
  • Posts: 668
  • Former Delphi 1-7 and 10.2 User
Re: How future "safe" is Carbon - anyone knows?
« Reply #75 on: May 13, 2020, 09:14:12 am »
I'm still trying to find all deprecated functions in our code.
Is there any news how automate this work?
Probably notarization tool can do it? Or not?

Notarization does not report deprecated functions - I've notarized  applications which contain functions deprecated in macOS 10.8 (Mountain Lion) and there were no warnings of any sort in the notarization log file. I only noticed the deprecations while trawling the Apple developer Documentation site.
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r358002
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

Igor Kokarev

  • Full Member
  • ***
  • Posts: 118
Re: How future "safe" is Carbon - anyone knows?
« Reply #76 on: May 13, 2020, 09:42:13 am »
Notarization does not report deprecated functions - I've notarized  applications which contain functions deprecated in macOS 10.8 (Mountain Lion) and there were no warnings of any sort in the notarization log file. I only noticed the deprecations while trawling the Apple developer Documentation site.

OK, I've understood. Thanks.

cobata

  • New Member
  • *
  • Posts: 49
  • Programmer-analyst
    • COBATA Software - Research, Development, Testing, Consulting
Re: How future "safe" is Carbon - anyone knows?
« Reply #77 on: May 13, 2020, 04:00:33 pm »
Igor,

The Cocoa ws is near to the official stable release...
I asked the community to port Carbon 32 to 64 too with no success and finally decided that it is lost war with Apple (you know they f..ked even Embarcadero (and even automotive industry) with their often changing policies.
By me, it is more reasonable to continue to develop my software functionality and to recompile it for Cocoa when it is officially released.

Regards
COBATA Software - Research, Development, Testing, Consulting
https://www.COBATA.com/

cobata

  • New Member
  • *
  • Posts: 49
  • Programmer-analyst
    • COBATA Software - Research, Development, Testing, Consulting
Re: How future "safe" is Carbon - anyone knows?
« Reply #78 on: May 13, 2020, 04:07:25 pm »
The Cocoa ws is near to the official stable release...

I mean that all bugs I found for my software on porting and testing from Carbon to Cocoa I had reported and after an year they are all fixed...
It was maybe better to find your bugs and to report and to support them during the development of your software.
COBATA Software - Research, Development, Testing, Consulting
https://www.COBATA.com/

Igor Kokarev

  • Full Member
  • ***
  • Posts: 118
Re: How future "safe" is Carbon - anyone knows?
« Reply #79 on: May 14, 2020, 12:35:54 pm »
It's very hard to find deprecated functions in existing code.

For example, GetCurrentProcess() from ApplicationServices framework.

I very hope that it there is some solutino to automate this work.

PascalDragon

  • Hero Member
  • *****
  • Posts: 1528
  • Compiler Developer
Re: How future "safe" is Carbon - anyone knows?
« Reply #80 on: May 14, 2020, 01:30:02 pm »
By me, it is more reasonable to continue to develop my software functionality and to recompile it for Cocoa when it is officially released.

It already is officially released: Lazarus for macOS on x86_64 uses Cocoa.

trev

  • Hero Member
  • *****
  • Posts: 668
  • Former Delphi 1-7 and 10.2 User
Re: How future "safe" is Carbon - anyone knows?
« Reply #81 on: May 14, 2020, 01:31:15 pm »
Automation: Xcode shows deprecation warnings which I understand are based off the header files. If the function has been removed, then of course Xcode won't compile it.

Otherwise: You need to resort to Apple's macOS release notes which only seem to go back to macOS 10.13.

I believe I've also seen the deprecations in FPC's converted macOS header files but I think FPC 3.0.4 is only up to date to macOS 10.5 and trunk is up to date to macOS 10.8.

I think the only sure way to know is to check your functions against the Apple online API documentation.
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r358002
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

Igor Kokarev

  • Full Member
  • ***
  • Posts: 118
Re: How future "safe" is Carbon - anyone knows?
« Reply #82 on: May 15, 2020, 11:34:22 am »
Thanks.

trev

  • Hero Member
  • *****
  • Posts: 668
  • Former Delphi 1-7 and 10.2 User
Re: How future "safe" is Carbon - anyone knows?
« Reply #83 on: May 16, 2020, 06:39:45 am »
Here is a listing (attached) of the deprecated functions for trunk as of r44876, 2020-04-20. Bear in mind this probably only catches deprecations up to macOS [edit]10.10 [/edit].
« Last Edit: May 23, 2020, 01:49:42 pm by trev »
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r358002
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

trev

  • Hero Member
  • *****
  • Posts: 668
  • Former Delphi 1-7 and 10.2 User
Re: How future "safe" is Carbon - anyone knows?
« Reply #84 on: May 23, 2020, 01:51:20 pm »
I finally found the Release Notes for macos10.12 and older back to OpenStep 4.x !
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r358002
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

 

TinyPortal © 2005-2018