[Interest] Prevent tabbing of Qt application on macOS Sierra

René J.V. Bertin rjvbertin at gmail.com
Sat Dec 2 22:20:19 CET 2017


On Saturday December 02 2017 19:50:01 Jake Petroules wrote:

>Actually, you shouldn't do this. Instead, use this:

THere's always a better solution, eh? :)

>(compiler error, not linker error, and there's actually no difference whatsoever in the generated code).

I really thought I saw a linker error, but that may have been tainted by interpretation of the code.

>The solution above doesn't have this issue, and lets the compiler *understand* (because of the scope of the __builtin_available) that that selector will be available in the context you're calling it - hence no warning with a deployment target < 10.12.

I think I've seen compile failures with that __builtin_available approach, but possibly because qglobal_p.h wasn't being included (or wasn't new enough).

R.



More information about the Interest mailing list