From a693c12733277a53d38580d6a35222fa233a2af5 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Mon, 11 Mar 2013 12:28:48 +0100 Subject: [PATCH] Missed userInfo keys. --- Classes/NJMappingsController.m | 4 ++-- Classes/NJOutputController.m | 2 +- Info.plist | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/NJMappingsController.m b/Classes/NJMappingsController.m index d7310c0..0db1111 100644 --- a/Classes/NJMappingsController.m +++ b/Classes/NJMappingsController.m @@ -108,8 +108,8 @@ [self updateInterfaceForCurrentMapping]; [NSNotificationCenter.defaultCenter postNotificationName:NJEventMappingChanged - object:self - userInfo:@{ @"mapping": _currentMapping }]; + object:self + userInfo:@{ NJMappingKey : _currentMapping }]; } - (IBAction)addPressed:(id)sender { diff --git a/Classes/NJOutputController.m b/Classes/NJOutputController.m index cf758e6..0bb335f 100644 --- a/Classes/NJOutputController.m +++ b/Classes/NJOutputController.m @@ -280,7 +280,7 @@ } - (void)mappingListDidChange:(NSNotification *)note { - NSArray *mappings = note.userInfo[@"mappings"]; + NSArray *mappings = note.userInfo[NJMappingListKey]; NJMapping *current = mappingPopup.selectedItem.representedObject; [mappingPopup.menu removeAllItems]; for (NJMapping *mapping in mappings) { diff --git a/Info.plist b/Info.plist index 4223333..6665b11 100644 --- a/Info.plist +++ b/Info.plist @@ -46,7 +46,7 @@ CFBundleSignature ???? CFBundleVersion - 129 + 131 LSApplicationCategoryType public.app-category.utilities NSHumanReadableCopyright -- 2.30.2