Carbon UI framework has been deprecated for 12 years. Cocoa has been available since the first Mac OS X version, so ~20 years ago, and it's still be main UI framework on macOS, and it will still be for years.
You can't come now and whine that Apple changes UI frameworks too often.
You can't come now and whine that Apple changes UI frameworks too often.