X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.m;h=01bd0d38023764b4f2762ac37d9ee2cfc85395b0;hp=43c92d33b65fa6722e380e413740aa60eaeb1b31;hb=7f9b53485ac2750ac9778b0aaafa62f7bafa251f;hpb=fc6d0fdabe55f8ae0c417f7c4be745d51a47e0bd diff --git a/ConfigsController.m b/ConfigsController.m index 43c92d3..01bd0d3 100644 --- a/ConfigsController.m +++ b/ConfigsController.m @@ -48,7 +48,7 @@ currentConfig = config; [removeButton setEnabled: ![config protect]]; [targetController load]; - [[[NSApplication sharedApplication] delegate] configChanged]; + [(ApplicationController *)[[NSApplication sharedApplication] delegate] configChanged]; [tableView selectRow: [configs indexOfObject: config] byExtendingSelection: NO]; } @@ -56,7 +56,7 @@ Config* newConfig = [[Config alloc] init]; [newConfig setName: @"untitled"]; [configs addObject: newConfig]; - [[[NSApplication sharedApplication] delegate] configsChanged]; + [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged]; [tableView reloadData]; [tableView selectRow: ([configs count]-1) byExtendingSelection: NO]; [tableView editColumn: 0 row:([configs count]-1) withEvent:nil select:YES]; @@ -78,7 +78,7 @@ [entries removeObjectForKey: key]; } } - [[[NSApplication sharedApplication] delegate] configsChanged]; + [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged]; [tableView reloadData]; } @@ -99,7 +99,7 @@ [(Config*)[configs objectAtIndex: index] setName: newName]; [targetController refreshConfigsPreservingSelection:YES]; [tableView reloadData]; - [[[NSApplication sharedApplication] delegate] configsChanged]; + [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged]; } -(int)numberOfRowsInTableView: (NSTableView*)table { @@ -170,7 +170,7 @@ configs = newConfigs; [tableView reloadData]; currentConfig = NULL; - [[[NSApplication sharedApplication] delegate] configsChanged]; + [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged]; int index = [[envelope objectForKey: @"selectedIndex"] intValue]; [self activateConfig: [configs objectAtIndex:index] forApplication: NULL];