auto-resize views to match launch window view sizes.

This commit is contained in:
Kelvin Sherlock 2021-06-09 00:11:25 -04:00
parent 69f56830ca
commit c0534f0107
1 changed files with 8 additions and 4 deletions

View File

@ -163,16 +163,20 @@ static int EffectsIndex(NSString *str) {
[self reset];
}
static void AddSubview(NSView *parent, NSView *child) {
[child setFrame: [parent bounds]];
[parent addSubview: child];
}
- (void)windowDidLoad {
[super windowDidLoad];
// Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
AddSubview(_slotView, [_slotController view]);
AddSubview(_mediaView, [_mediaController view]);
AddSubview(_machineView, [_machineViewController view]);
[_slotView addSubview: [_slotController view]];
[_mediaView addSubview: [_mediaController view]];
[_machineView addSubview: [_machineViewController view]];
NSArray *keys = @[
//@"mameMachine", // - handled