using property declaration in MPNodeResolver instead of simple getter.

This commit is contained in:
Michael Starke
2018-11-14 11:02:51 +01:00
parent b9de0fb2dd
commit 23e7ebc4a0
5 changed files with 23 additions and 23 deletions

View File

@@ -843,9 +843,9 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
id<MPTargetNodeResolving> nodeResolver = [NSApp targetForAction:@selector(currentTargetNodes)];
NSArray *targetNodes = [nodeResolver currentTargetNodes];
NSArray *targetGroups = [groupResolver currentTargetGroups];
NSArray *targetEntries = [entryResolver currentTargetEntries];
NSArray *targetNodes = nodeResolver.currentTargetNodes;
NSArray *targetGroups = groupResolver.currentTargetGroups;
NSArray *targetEntries = entryResolver.currentTargetEntries;
KPKEntry *targetEntry = targetEntries.count == 1 ? targetEntries.firstObject : nil;
KPKGroup *targetGroup = targetGroups.count == 1 ? targetGroups.firstObject : nil;