Add title to Mac preferences window

This commit is contained in:
Michael Buckley 2019-12-03 19:54:18 -08:00
parent fff7941ebf
commit 92645c8ab1
1 changed files with 1 additions and 0 deletions

View File

@ -475,6 +475,7 @@ static NSWindowFrameAutosaveName const kMainWindowIdentifier = @"s9xMainWindow";
if ( self.prefsWindowController == nil )
{
NSWindow *prefsWindow = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 100, 100) styleMask:NSWindowStyleMaskTitled|NSWindowStyleMaskClosable|NSWindowStyleMaskMiniaturizable backing:NSBackingStoreBuffered defer:NO];
prefsWindow.title = NSLocalizedString(@"Preferences", @"");
self.prefsWindowController = [[NSWindowController alloc] initWithWindow:prefsWindow];
prefsWindow.contentViewController = [[S9xPrefsViewController alloc] initWithNibName:@"S9xPrefsViewController" bundle:nil];