Created
August 9, 2011 21:52
-
-
Save pizthewiz/1135292 to your computer and use it in GitHub Desktop.
QC constants added in 10.7
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 defined(MAC_OS_X_VERSION_10_7) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7) | |
if (&QCPlugInAttributeCategoriesKey != NULL) { | |
NSArray* categories = [NSArray arrayWithObjects:@"Utility", nil]; | |
[attributes setObject:categories forKey:QCPlugInAttributeCategoriesKey]; | |
} | |
if (&QCPlugInAttributeExamplesKey != NULL) { | |
NSArray* examples = [NSArray arrayWithObjects: | |
[[NSBundle bundleForClass:[self class]] URLForResource:TTExampleCompositionName withExtension:@"qtz"], nil]; | |
[attributes setObject:examples forKey:QCPlugInAttributeExamplesKey]; | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment