Bug 1941595 Comment 68 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Markus Stange [:mstange] from comment #67)
> (In reply to Steven Michaud [:smichaud] (Retired) from comment #56)
> > Are you sure the `@available` keyword's value changes according to which macOS version is running?
> 
> Yes, @available checks the runtime version. https://developer.apple.com/documentation/xcode/running-code-on-a-specific-version#Require-a-minimum-operating-system-version-for-a-feature

Not correct, Markus.

The document you reference says "Your app’s minimum deployment target defines the range of operating system versions your app supports." But the "minimum deployment target" is a build parameter.

We really do need an `nsCocoaFeatures::OnSonomaOrLater()` method.
(In reply to Markus Stange [:mstange] from comment #67)
> (In reply to Steven Michaud [:smichaud] (Retired) from comment #56)
> > Are you sure the `@available` keyword's value changes according to which macOS version is running?
> 
> Yes, @available checks the runtime version. https://developer.apple.com/documentation/xcode/running-code-on-a-specific-version#Require-a-minimum-operating-system-version-for-a-feature

Not correct, Markus.

The document you reference says "Your app’s minimum deployment target defines the range of operating system versions your app supports." But the "minimum deployment target" is a build parameter.

We really do need an `nsCocoaFeatures::OnSonomaOrLater()` method.

The same is true for `#available` in Swift. I know this from my own personal experience.

Back to Bug 1941595 Comment 68