Minor updates for plugins

This commit is contained in:
michael starke
2016-02-29 15:27:49 +01:00
parent 90c731cbb0
commit c392e32e9a
7 changed files with 15 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ static MPPluginHost *_instance;
}
- (NSArray<KPKEntry *> *)filteredEntriesUsingBlock:(NodeMatchBlock)matchBlock {
NSArray *currentDocuments = [[NSDocumentController sharedDocumentController] documents];
NSArray *currentDocuments = [NSDocumentController sharedDocumentController].documents;
NSMutableArray *entries = [[NSMutableArray alloc] initWithCapacity:200];
for(MPDocument *document in currentDocuments) {
if(document.tree) {
@@ -49,4 +49,7 @@ static MPPluginHost *_instance;
return nil;
}
- (void)presentError:(NSError *)error completionHandler:(void (^)(NSModalResponse))completionHandler {
}
@end