projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements to mappings controller. Move array munging into a separate category...
[enjoyable.git]
/
Classes
/
NJOutputController.m
diff --git
a/Classes/NJOutputController.m
b/Classes/NJOutputController.m
index
cbb48f7
..
5d90bee
100644
(file)
--- a/
Classes/NJOutputController.m
+++ b/
Classes/NJOutputController.m
@@
-29,6
+29,11
@@
selector:@selector(mappingListDidChange:)
name:NJEventMappingListChanged
object:nil];
selector:@selector(mappingListDidChange:)
name:NJEventMappingListChanged
object:nil];
+ [NSNotificationCenter.defaultCenter
+ addObserver:self
+ selector:@selector(mappingDidChange:)
+ name:NJEventMappingChanged
+ object:nil];
}
return self;
}
}
return self;
}
@@
-289,4
+294,8
@@
[mappingPopup selectItemWithRepresentedObject:current];
}
[mappingPopup selectItemWithRepresentedObject:current];
}
+- (void)mappingDidChange:(NSNotification *)note {
+ [self loadCurrent];
+}
+
@end
@end