Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a method to get a plug-in's categories as a single string

  • Loading branch information...
commit fd47d260824993ebd7c65876612a7136493e9ed9 1 parent 480a642
@skurfer authored
View
1  Quicksilver/Code-QuickStepCore/QSPlugIn.h
@@ -48,6 +48,7 @@
- (BOOL)isRecommended;
- (NSArray *)categories;
+- (NSString *)categoriesAsString;
- (NSArray *)relatedBundles;
- (NSData *)attributedDescription;
View
5 Quicksilver/Code-QuickStepCore/QSPlugIn.m
@@ -313,6 +313,11 @@ - (NSArray *)categories {
return [[self info] valueForKeyPath:@"QSPlugIn.categories"];
}
+- (NSString *)categoriesAsString
+{
+ return [[self categories] componentsJoinedByString:@", "];
+}
+
- (NSArray *)relatedBundles {
return [[self info] valueForKeyPath:@"QSPlugIn.relatedBundles"];
}
Please sign in to comment.
Something went wrong with that request. Please try again.