From: Joe Wreschnig Date: Mon, 11 Mar 2013 11:28:48 +0000 (+0100) Subject: Missed userInfo keys. X-Git-Tag: version-1.1~57 X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=a693c12733277a53d38580d6a35222fa233a2af5;p=enjoyable.git Missed userInfo keys. --- 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