Skip to content

Instantly share code, notes, and snippets.

@jbrjake
Created March 15, 2013 19:18
Show Gist options
  • Save jbrjake/5172336 to your computer and use it in GitHub Desktop.
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…
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