Move Preferences to Swift.
This commit is contained in:
1 parent
a772c499f7
commit
05f27e845a
12 files changed
+287
-349
No files matched your search
@@ -10,10 +10,11 @@
|
||||
#import "SBDocument.h"
|
||||
#import "SBPresetManager.h"
|
||||
#import "SBQueueController.h"
|
||||
#import "SBPrefsController.h"
|
||||
#import "SBLogWindowController.h"
|
||||
#import "SBLogger.h"
|
||||
|
||||
#import "Subler-Swift.h"
|
||||
|
||||
#import <MP42Foundation/MP42File.h>
|
||||
|
||||
#define DONATE_NAG_TIME (60 * 60 * 24 * 7)
|
||||
@@ -21,7 +22,7 @@
|
||||
|
||||
@interface SBAppDelegate ()
|
||||
{
|
||||
SBPrefsController *prefController;
|
||||
SBPrefsWindowController *prefController;
|
||||
SBLogWindowController *debugLogController;
|
||||
SBDocumentController *documentController;
|
||||
}
|
||||
@@ -33,7 +34,7 @@
|
||||
{
|
||||
documentController = [[SBDocumentController alloc] init];
|
||||
|
||||
[SBPrefsController registerUserDefaults];
|
||||
[SBPrefsWindowController registerUserDefaults];
|
||||
|
||||
NSString *appSupportPath = [NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory,
|
||||
NSUserDomainMask,
|
||||
@@ -193,7 +194,7 @@
|
||||
- (IBAction) showPrefsWindow: (id) sender
|
||||
{
|
||||
if (!prefController) {
|
||||
prefController = [[SBPrefsController alloc] init];
|
||||
prefController = [[SBPrefsWindowController alloc] init];
|
||||
}
|
||||
[prefController showWindow:self];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user