Fix class update notification and add outlets and actions to GormLanguageViewController

This commit is contained in:
Gregory John Casamento 2023-07-14 16:42:25 -04:00
parent 947b350444
commit 548f2478f8
3 changed files with 12 additions and 1 deletions

View file

@ -1,9 +1,20 @@
{
"## Comment" = "Do NOT change this file, Gorm maintains it";
FirstResponder = {
Actions = (
"updateTargetLanguage:",
"updateSourceLanguage:"
);
Super = NSObject;
};
GormLanguageViewController = {
Actions = (
"updateTargetLanguage:",
"updateSourceLanguage:"
);
Outlets = (
targetLanguage,
sourceLanguage
);
Super = NSViewController;
};

View file

@ -684,7 +684,7 @@ objectValueForTableColumn: (NSTableColumn *)tc
- (void) handleNotification: (NSNotification *)notification
{
if([notification object] == classManager &&
[(id<IB>)[[NSApp delegate] delegate] activeDocument] != nil)
(id<IB>)[[NSApp delegate] activeDocument] != nil)
{
[self _refreshView];
}