Skip to content

Instantly share code, notes, and snippets.

@pizthewiz
Created August 9, 2011 21:52
Show Gist options
  • Save pizthewiz/1135292 to your computer and use it in GitHub Desktop.
Save pizthewiz/1135292 to your computer and use it in GitHub Desktop.
QC constants added in 10.7
#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