- (void)mappingsViewController:(NJMappingsViewController *)mvc
renameMappingAtIndex:(NSInteger)index
toName:(NSString *)name {
- [self.ic renameMapping:self.ic.mappings[index]
- to:name];
+ [self.ic renameMapping:self.ic.mappings[index] to:name];
}
- (BOOL)mappingsViewController:(NJMappingsViewController *)mvc
if ([oldMapping.name.lowercaseString isEqualToString:@"@application"]
|| [oldMapping.name.lowercaseString isEqualToString:
NSLocalizedString(@"@Application", nil).lowercaseString]) {
- oldMapping.name = app.bestMappingName;
- [self mappingsChanged];
+ [self renameMapping:oldMapping to:app.bestMappingName];
}
}
_manualMapping = oldMapping;
_currentMapping = mapping;
NSUInteger idx = [self indexOfMapping:_currentMapping];
[NSNotificationCenter.defaultCenter
- postNotificationName:NJEventMappingChanged
- object:self
- userInfo:@{ NJMappingKey : _currentMapping,
- NJMappingIndexKey: @(idx) }];
+ postNotificationName:NJEventMappingChanged
+ object:self
+ userInfo:@{ NJMappingKey : _currentMapping,
+ NJMappingIndexKey: @(idx) }];
}
- (void)activateMapping:(NJMapping *)mapping {
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>605</string>
+ <string>607</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>NSHumanReadableCopyright</key>