currentConfig = config;
[removeButton setEnabled: ![config protect]];
[targetController load];
- [[[NSApplication sharedApplication] delegate] configChanged];
+ [(ApplicationController *)[[NSApplication sharedApplication] delegate] configChanged];
[tableView selectRow: [configs indexOfObject: config] byExtendingSelection: NO];
}
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];
[entries removeObjectForKey: key];
}
}
- [[[NSApplication sharedApplication] delegate] configsChanged];
+ [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged];
[tableView reloadData];
}
[(Config*)[configs objectAtIndex: index] setName: newName];
[targetController refreshConfigsPreservingSelection:YES];
[tableView reloadData];
- [[[NSApplication sharedApplication] delegate] configsChanged];
+ [(ApplicationController *)[[NSApplication sharedApplication] delegate] configsChanged];
}
-(int)numberOfRowsInTableView: (NSTableView*)table {
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];
IOHIDDeviceRef device = IOHIDQueueGetDevice((IOHIDQueueRef) inSender);
Joystick* js = [self findJoystickByRef: device];
- if([[[NSApplication sharedApplication] delegate] active]) {
+ if([(ApplicationController *)[[NSApplication sharedApplication] delegate] active]) {
// for reals
JSAction* mainAction = [js actionForEvent: value];
if(!mainAction)