mirror of
https://github.com/ksherlock/ample.git
synced 2026-04-20 00:16:44 +00:00
auto-resize views to match launch window view sizes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user