Giter Site home page Giter Site logo

Comments (5)

jwwalker avatar jwwalker commented on July 17, 2024

How old a version of Xcode are we talking? I didn't think @available was a particularly recent feature. I'm reluctant to change it, as that seems like the approach that Apple always recommends. It's also easier to read than some weird AppKit version number.

Checking for 10.15 instead of 10.7 is deliberate. Although convertRectToBacking may have worked earlier, it wasn't necessary until a change in the implementation of NSOpenGLView in Catalina.

from quesa.

seanm avatar seanm commented on July 17, 2024

Xcode 10.1, the newest possible on macOS 10.13.x, released 2018-10-30.

It's not that Xcode 10.1 doesn't support @available, it's that building a lib on a newer Xcode, then using that lib with an older Xcode fails. Others have the same issue, ex: https://developer.apple.com/forums/thread/123003

In my case, to build Quesa as a fat binary, I have to use Xcode 12. Since Quesa changes rarely, I commit the resulting libQuesa.a to my source control, then bots of several versions of macOS build my own code nightly against it.

from quesa.

seanm avatar seanm commented on July 17, 2024

Here's a fix: #11

from quesa.

jwwalker avatar jwwalker commented on July 17, 2024

I pushed a revision that puts the version test in a new function, so that I can document it in one place. By the way, the use of the floor function in your pull request was unnecessary.

from quesa.

seanm avatar seanm commented on July 17, 2024

Thanks!

flooring NSAppKitVersionNumber is idiomatic, and old habits die hard. :)

from quesa.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.