Comments (5)
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.
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.
Here's a fix: #11
from quesa.
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.
Thanks!
floor
ing NSAppKitVersionNumber
is idiomatic, and old habits die hard. :)
from quesa.
Related Issues (7)
- Integration with SDL1/2? HOT 4
- nullability annotation missing on TQ3MacOSDialogEventHandler & TQ3DialogAnchor HOT 6
- UBSan `-fsanitize=function` reports issue with `E3ClassInfo` vs `E3Root` HOT 16
- Plugin loading/unloading console logs... HOT 1
- Building the 3DMF Model Preview App HOT 1
- Building on GNU/Linux, a work in progress
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quesa.