25 |
|
#include "sysdeps.h" |
26 |
|
|
27 |
|
#include <Cocoa/Cocoa.h> |
28 |
< |
|
29 |
< |
#include "PrefsEditor.h" |
28 |
> |
#include "VMSettingsController.h" |
29 |
|
|
30 |
|
@interface SheepShaverMain : NSObject |
31 |
|
NSArray *nibObjects; |
37 |
|
|
38 |
|
- (NSArray*) loadPrefsNibFile |
39 |
|
{ |
40 |
< |
NSNib *nib = [[NSNib alloc] initWithNibNamed:@"MainMenu" bundle:nil]; |
40 |
> |
NSNib *nib = [[NSNib alloc] initWithNibNamed:@"VMSettingsWindow" bundle:nil]; |
41 |
|
NSArray *objects = nil; |
42 |
|
|
43 |
< |
if (![nib instantiateNibWithOwner:self topLevelObjects:&objects]) { |
43 |
> |
if (![nib instantiateNibWithOwner:[VMSettingsController sharedInstance] topLevelObjects:&objects]) { |
44 |
|
NSLog(@"Could not load Prefs NIB file!\n"); |
45 |
|
return nil; |
46 |
|
} |
82 |
|
[nibObjects retain]; |
83 |
|
} |
84 |
|
|
85 |
+ |
[[VMSettingsController sharedInstance] setupGUI]; |
86 |
|
[NSApp runModalForWindow:prefsWindow]; |
87 |
|
} |
88 |
|
|