[self updateInterfaceForCurrentMapping];
[NSNotificationCenter.defaultCenter
postNotificationName:NJEventMappingListChanged
- object:_mappings];
+ object:self
+ userInfo:@{ @"mappings": _mappings }];
}
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state
_manualMapping = mapping;
_currentMapping = mapping;
[self updateInterfaceForCurrentMapping];
- [NSNotificationCenter.defaultCenter postNotificationName:NJEventMappingChanged
- object:_currentMapping];
+ [NSNotificationCenter.defaultCenter
+ postNotificationName:NJEventMappingChanged
+ object:self
+ userInfo:@{ @"mapping": _currentMapping }];
}
- (IBAction)addPressed:(id)sender {