Created
March 15, 2013 19:18
-
-
Save jbrjake/5172336 to your computer and use it in GitHub Desktop.
I like GCD syntax better than NSOperations, but currently my app has to support 10.5. And I don't want to have to test two different execution paths for 10.5 and 10.6+. So I'm basing the one to use off the MIN_REQUIRED macro, which per TN2064 will be the same as the DEPLOYMENT_TARGET. My GCD code doesn't execute now, but will whenever I can drop…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6) { | |
// Use NSOperations | |
} | |
else { | |
// Use GCD | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment