-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIFDebugSettings.m
50 lines (38 loc) · 1.32 KB
/
IFDebugSettings.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// IFDebugSettings.m
// Inform
//
// Created by Andrew Hunter on 10/10/2004.
// Copyright 2004 Andrew Hunter. All rights reserved.
//
#import "IFDebugSettings.h"
@implementation IFDebugSettings
- (id) init {
return [self initWithNibName: @"DebugSettings"];
}
- (NSString*) title {
return [[NSBundle mainBundle] localizedStringForKey: @"Debug Settings"
value: @"Debug Settings"
table: nil];
}
// = Setting up =
- (void) updateFromCompilerSettings {
IFCompilerSettings* settings = [self compilerSettings];
[donotCompileNaturalInform setState:
(![settings compileNaturalInformOutput])?NSOnState:NSOffState];
[runBuildSh setState: [settings runBuildScript]?NSOnState:NSOffState];
[runLoudly setState: [settings loudly]?NSOnState:NSOffState];
[debugMemory setState: [settings debugMemory]?NSOnState:NSOffState];
}
- (void) setSettings {
IFCompilerSettings* settings = [self compilerSettings];
[settings setRunBuildScript: [runBuildSh state]==NSOnState];
[settings setCompileNaturalInformOutput: [donotCompileNaturalInform state]!=NSOnState];
[settings setLoudly: [runLoudly state]==NSOnState];
[settings setDebugMemory: [debugMemory state]==NSOnState];
}
- (BOOL) enableForCompiler: (NSString*) compiler {
// These settings are presently permanently disabled
return NO;
}
@end