mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-03-01 07:30:27 +00:00
load the VMSettingsWindow nib for prefs window in SheepShaver
This commit is contained in:
parent
c465e7239e
commit
3867b28037
@ -25,8 +25,7 @@
|
||||
#include "sysdeps.h"
|
||||
|
||||
#include <Cocoa/Cocoa.h>
|
||||
|
||||
#include "PrefsEditor.h"
|
||||
#include "VMSettingsController.h"
|
||||
|
||||
@interface SheepShaverMain : NSObject
|
||||
NSArray *nibObjects;
|
||||
@ -38,10 +37,10 @@
|
||||
|
||||
- (NSArray*) loadPrefsNibFile
|
||||
{
|
||||
NSNib *nib = [[NSNib alloc] initWithNibNamed:@"MainMenu" bundle:nil];
|
||||
NSNib *nib = [[NSNib alloc] initWithNibNamed:@"VMSettingsWindow" bundle:nil];
|
||||
NSArray *objects = nil;
|
||||
|
||||
if (![nib instantiateNibWithOwner:self topLevelObjects:&objects]) {
|
||||
if (![nib instantiateNibWithOwner:[VMSettingsController sharedInstance] topLevelObjects:&objects]) {
|
||||
NSLog(@"Could not load Prefs NIB file!\n");
|
||||
return nil;
|
||||
}
|
||||
@ -83,6 +82,7 @@
|
||||
[nibObjects retain];
|
||||
}
|
||||
|
||||
[[VMSettingsController sharedInstance] setupGUI];
|
||||
[NSApp runModalForWindow:prefsWindow];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user