Commit 99b8b74a authored by Timo Tegtmeier's avatar Timo Tegtmeier

Updated code to work with Xcode 11

parent 9ca1af4f
......@@ -2,6 +2,8 @@
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
build/
## User settings
xcuserdata/
......
......@@ -43,15 +43,15 @@
//
// Value Transformer einrichten
PowerOffTransformer * powerOffTransformer = [[[PowerOffTransformer alloc] init] autorelease];
PowerOffTransformer * powerOffTransformer = [[PowerOffTransformer alloc] init];
[NSValueTransformer setValueTransformer:powerOffTransformer
forName:@"PowerOffDelayTransformer"];
BoolToStringTransformer * bool2string = [[[BoolToStringTransformer alloc] init] autorelease];
BoolToStringTransformer * bool2string = [[BoolToStringTransformer alloc] init];
[NSValueTransformer setValueTransformer:bool2string
forName:@"BoolToStringTransformer"];
PathExpander *pathEx = [[[PathExpander alloc] init] autorelease];
PathExpander *pathEx = [[PathExpander alloc] init];
[NSValueTransformer setValueTransformer:pathEx
forName:@"PathExpander"];
}
......
......@@ -26,8 +26,8 @@
self = [super init];
if(self) {
store = [[[NSMutableArray alloc] init] retain];
texts = [[NSArray arrayWithObjects:
store = [[NSMutableArray alloc] init];
texts = [NSArray arrayWithObjects:
/* 00 */ NSLocalizedString(@"Crankshaft turning signal cyl 1 not plausible", nil),
/* 01 */ NSLocalizedString(@"Crankshaft turning signal cyl 2 not plausible", nil),
/* 02 */ NSLocalizedString(@"Throttle signal not plausible", nil),
......@@ -46,7 +46,7 @@
/* 15 */ NSLocalizedString(@"RF problem with high voltage circuit", nil),
/* 16 */ NSLocalizedString(@"unknown error (16)", nil),
nil
] retain];
];
}
return self;
......@@ -99,7 +99,7 @@
-(int) numberOfRowsInTableView: (NSTableView *) aTableView
{
return [store count];
return (int)[store count];
}
@end
......@@ -21,6 +21,7 @@
#import "ECUErrorModel.h"
#import "ECUError.h"
#import "cmds.h"
#import "serial.h"
@interface EngineControlUnit : NSObject {
//
......@@ -253,4 +254,4 @@
// Damit niemand meckert :-)
-(void)setNilValueForKey: (NSString *)key;
@end
\ No newline at end of file
@end
......@@ -28,10 +28,10 @@
if(_supressNextError) {
_supressNextError = NO;
} else {
_lastError = [err retain];
_lastError = err;
}
}
-(void) clearLastError { [_lastError release]; _lastError = nil; }
-(void) clearLastError { _lastError = nil; }
-(void) supressNextError { _supressNextError = YES; }
//
......@@ -220,7 +220,6 @@
options, 0644)) == -1) {
NSLog(@"Unable to open log file: %@; error %d",
[[NSUserDefaults standardUserDefaults] stringForKey: @"recordingPath"], errno);
[_arrayRecItems release];
return;
}
......@@ -284,7 +283,6 @@
}
if(![_arrayRecItems count]) {
[_arrayRecItems release];
return ;
}
......@@ -316,7 +314,6 @@
NSAssert ([self recording], @"I can't stop recording, when I'm not recording!");
close(_fdRecord);
[_arrayRecItems release];
[self setRecording: NO];
}
-(void) setRecording:(bool)rec { _recording = rec; }
......@@ -404,7 +401,7 @@
goto error;
buf[6] = '\0';
[self setVersion: [NSString stringWithCString: (char *)buf]];
[self setVersion: [NSString stringWithCString: (char *)buf encoding:NSASCIIStringEncoding]];
// Für interne Zwecke ist eine Repräsentation als
......@@ -478,6 +475,7 @@ error:
return nil;
}
-(bool) thisIsAnECU: (NSString *) path {
unsigned char buf [16];
bool okay;
......@@ -487,9 +485,8 @@ error:
if(!OpenSerialPort ([[NSFileManager defaultManager] fileSystemRepresentationWithPath: path]))
return NO;
if(!(okay = DiagQuery (CMD_GET_TYPE, CMD_GET_TYPE_LEN, buf)));
CloseSerialPort ();
if(!(okay = DiagQuery (CMD_GET_TYPE, CMD_GET_TYPE_LEN, buf)))
CloseSerialPort ();
if(!okay)
return NO;
......@@ -609,7 +606,7 @@ error:
NSAssert ([self canSetCustomPowerOffDelay], @"Unsupported feature!");
if(![self useCustomPowerOffDelay])
return nil;
return 0;
[self stopMonitor];
......@@ -766,15 +763,15 @@ error:
// Typfunktionen
//
-(NSString *) version { return _version; }
-(void) setVersion: (NSString *) ver { _version = ver; [_version retain]; }
-(void) setVersion: (NSString *) ver { _version = ver; }
-(NSString *) type { return _type; }
-(void) setType: (NSString *) type { _type = type; [_type retain]; }
-(void) setType: (NSString *) type { _type = type; }
-(NSString *) subType { return _subtype; }
-(void) setSubType: (NSString *) stype { _subtype = stype; [_subtype retain]; }
-(void) setSubType: (NSString *) stype { _subtype = stype; }
-(NSString *) generation { return _generation; }
-(void) setGeneration: (NSString *) gen { _generation = gen; [_generation retain]; }
-(void) setGeneration: (NSString *) gen { _generation = gen; }
-(NSString *) serial { return _serial; }
-(void) setSerial: (NSString *) serial { _serial = serial; [_serial retain]; }
-(void) setSerial: (NSString *) serial { _serial = serial; }
//
......@@ -824,11 +821,11 @@ error:
_isRacing = NO;
_curIgnAngleString = [[NSMutableString stringWithCapacity: 10] retain];
_curIgnAngleStringCyl2 = [[NSMutableString stringWithCapacity: 10] retain];
_curIgnOffsetString = [[NSMutableString stringWithCapacity: 10] retain];
_revTimeString = [[NSMutableString stringWithCapacity: 15] retain];
_rpmString = [[NSMutableString stringWithCapacity: 10] retain];
_curIgnAngleString = [NSMutableString stringWithCapacity: 10];
_curIgnAngleStringCyl2 = [NSMutableString stringWithCapacity: 10];
_curIgnOffsetString = [NSMutableString stringWithCapacity: 10];
_revTimeString = [NSMutableString stringWithCapacity: 15];
_rpmString = [NSMutableString stringWithCapacity: 10];
}
return self;
......
......@@ -6,10 +6,14 @@
<string>German</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleHelpBookFolder</key>
<string>TTRComHelp</string>
<key>CFBundleHelpBookName</key>
<string>TTRCom Help</string>
<key>CFBundleIconFile</key>
<string>TTRCom</string>
<key>CFBundleIdentifier</key>
<string>com.tegi-stuff.TTRCom</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
......@@ -17,18 +21,14 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.01</string>
<string>1.1.2</string>
<key>CFBundleSignature</key>
<string>ttrc</string>
<key>CFBundleVersion</key>
<string>0611</string>
<string>0612</string>
<key>NSMainNibFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>CFBundleHelpBookFolder</key>
<string>TTRComHelp</string>
<key>CFBundleHelpBookName</key>
<string>TTRCom Help</string>
</dict>
</plist>
......@@ -18,8 +18,7 @@
#import "SerialEnumerator.h"
void InitSerial (void);
void CloseSerialPort (void);
#include "serial.h"
@implementation SerialEnumerator
......@@ -46,7 +45,7 @@ void CloseSerialPort (void);
ret = GetPorts (&str, 128);
if(ret) {
return [NSString stringWithCString:str];
return [NSString stringWithCString:str encoding:NSASCIIStringEncoding];
} else {
FinishSerialEnum ();
return nil;
......
......@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 44;
objectVersion = 45;
objects = {
/* Begin PBXBuildFile section */
......@@ -37,6 +37,8 @@
isa = PBXBuildRule;
compilerSpec = com.apple.compilers.gcc.4_0;
fileType = sourcecode.c;
inputFiles = (
);
isEditable = 1;
outputFiles = (
);
......@@ -44,7 +46,6 @@
/* End PBXBuildRule section */
/* Begin PBXFileReference section */
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
2501DD980D90DE8C00FF9B10 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = DEVELOPER_DIR; };
2501DD9C0D90DEA800FF9B10 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; };
2501DDA00D90DEBB00FF9B10 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework; sourceTree = DEVELOPER_DIR; };
......@@ -54,12 +55,14 @@
251983780D9B99120057EE69 /* PowerOffTransformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PowerOffTransformer.m; sourceTree = "<group>"; };
2519837A0D9B99FE0057EE69 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
2519837B0D9B99FE0057EE69 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
252CE2A10D8DA8AE0092BE88 /* German */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = German; path = German.lproj/InfoPlist.strings; sourceTree = "<group>"; };
25372ADC0D99245F003D00AF /* record.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = record.tiff; sourceTree = "<group>"; };
256749250D7C132400D724A4 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/Main.nib; sourceTree = "<group>"; };
2567497B0D7C1E9900D724A4 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
2567497F0D7C1EAD00D724A4 /* German */ = {isa = PBXFileReference; explicitFileType = text.plist.strings; fileEncoding = 10; name = German; path = German.lproj/Localizable.strings; sourceTree = "<group>"; };
256749A80D7C5DA300D724A4 /* German */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = German; path = German.lproj/Main.nib; sourceTree = "<group>"; };
25398FD6239EB072000B7B2F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
25398FD7239EB072000B7B2F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
25398FD8239EB072000B7B2F /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = en.lproj/Main.nib; sourceTree = "<group>"; };
25398FD9239EB076000B7B2F /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = "<group>"; };
25398FDA239EB076000B7B2F /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Localizable.strings; sourceTree = "<group>"; };
25398FDB239EB076000B7B2F /* de */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = de; path = de.lproj/Main.nib; sourceTree = "<group>"; };
25398FDC239EB4EE000B7B2F /* serial.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = serial.h; sourceTree = "<group>"; };
259EAC200D75725B00199EEE /* EngineControlUnit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EngineControlUnit.h; sourceTree = "<group>"; };
259EAC210D75725B00199EEE /* EngineControlUnit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EngineControlUnit.m; sourceTree = "<group>"; };
259EAC5B0D75968C00199EEE /* UIController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UIController.h; sourceTree = "<group>"; };
......@@ -82,7 +85,7 @@
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
32CA4F630368D1EE00C91783 /* TTRCom_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TTRCom_Prefix.pch; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
8D1107320486CEB800E47090 /* TTRCom MacEdition.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TTRCom MacEdition.app"; sourceTree = BUILT_PRODUCTS_DIR; };
8D1107320486CEB800E47090 /* TTRCom.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TTRCom.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -129,7 +132,7 @@
19C28FACFE9D520D11CA2CBB /* Products */ = {
isa = PBXGroup;
children = (
8D1107320486CEB800E47090 /* TTRCom MacEdition.app */,
8D1107320486CEB800E47090 /* TTRCom.app */,
);
name = Products;
sourceTree = "<group>";
......@@ -199,6 +202,7 @@
32CA4F630368D1EE00C91783 /* TTRCom_Prefix.pch */,
29B97316FDCFA39411CA2CEA /* main.m */,
25C37C890D80295200C608BD /* cmds.h */,
25398FDC239EB4EE000B7B2F /* serial.h */,
);
name = "Other Sources";
sourceTree = "<group>";
......@@ -251,7 +255,7 @@
name = TTRCom;
productInstallPath = "$(HOME)/Applications";
productName = TTRCom;
productReference = 8D1107320486CEB800E47090 /* TTRCom MacEdition.app */;
productReference = 8D1107320486CEB800E47090 /* TTRCom.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
......@@ -259,9 +263,18 @@
/* Begin PBXProject section */
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1120;
};
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "TTRCom" */;
compatibilityVersion = "Xcode 3.0";
developmentRegion = en;
hasScannedForEncodings = 1;
knownRegions = (
en,
Base,
de,
);
mainGroup = 29B97314FDCFA39411CA2CEA /* TTRCom */;
projectDirPath = "";
projectRoot = "";
......@@ -313,8 +326,8 @@
252CE29F0D8DA8A60092BE88 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
089C165DFE840E0CC02AAC07 /* English */,
252CE2A10D8DA8AE0092BE88 /* German */,
25398FD6239EB072000B7B2F /* en */,
25398FD9239EB076000B7B2F /* de */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
......@@ -322,8 +335,8 @@
2567497D0D7C1EA300D724A4 /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
2567497B0D7C1E9900D724A4 /* English */,
2567497F0D7C1EAD00D724A4 /* German */,
25398FD7239EB072000B7B2F /* en */,
25398FDA239EB076000B7B2F /* de */,
);
name = Localizable.strings;
sourceTree = "<group>";
......@@ -331,8 +344,8 @@
256749A60D7C5D9800D724A4 /* Main.nib */ = {
isa = PBXVariantGroup;
children = (
256749250D7C132400D724A4 /* English */,
256749A80D7C5DA300D724A4 /* German */,
25398FD8239EB072000B7B2F /* en */,
25398FDB239EB076000B7B2F /* de */,
);
name = Main.nib;
sourceTree = "<group>";
......@@ -343,19 +356,21 @@
C01FCF4B08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = i386;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks";
FRAMEWORK_SEARCH_PATHS = "";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TTRCom_Prefix.pch;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
PRODUCT_BUNDLE_IDENTIFIER = "com.tegi-stuff.TTRCom";
PRODUCT_NAME = TTRCom;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
SDKROOT = macosx;
WRAPPER_EXTENSION = app;
ZERO_LINK = NO;
};
......@@ -364,16 +379,13 @@
C01FCF4C08A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = (
ppc,
i386,
);
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_IDENTITY = "-";
CURRENT_PROJECT_VERSION = "";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks\"";
FRAMEWORK_SEARCH_PATHS = "";
GCC_DYNAMIC_NO_PIC = YES;
GCC_ENABLE_OBJC_GC = required;
GCC_FAST_OBJC_DISPATCH = YES;
GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
GCC_MODEL_TUNING = G3;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
......@@ -381,10 +393,10 @@
GCC_THREADSAFE_STATICS = YES;
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Applications";
MACOSX_DEPLOYMENT_TARGET = 10.4;
PREBINDING = NO;
MACOSX_DEPLOYMENT_TARGET = 10.6;
PRODUCT_BUNDLE_IDENTIFIER = "com.tegi-stuff.TTRCom";
PRODUCT_NAME = "TTRCom MacEdition";
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
SDKROOT = macosx;
VALID_ARCHS = "i386 ppc64 ppc7400 ppc970 x86_64 ppc";
WRAPPER_EXTENSION = app;
};
......@@ -393,29 +405,79 @@
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 1.1.2;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.3.9.sdk";
MACOSX_DEPLOYMENT_TARGET = 10.6;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
};
name = Debug;
};
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = (
i386,
ppc,
);
CURRENT_PROJECT_VERSION = 1.0.01;
GCC_ENABLE_OBJC_GC = supported;
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CURRENT_PROJECT_VERSION = 1.1.2;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_MODEL_TUNING = G3;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.3;
PREBINDING = NO;
MACOSX_DEPLOYMENT_TARGET = 10.6;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_NAME = "TTRCom Mac-Edition";
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.3.9.sdk";
SDKROOT = macosx;
VERSIONING_SYSTEM = "";
};
name = Release;
......
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
......@@ -88,7 +88,6 @@
-(IBAction) clearErrors: (id) sender;
-(IBAction) saveRecordAs: (id) sender;
-(IBAction) toggleConnect: (id) sender;
-(IBAction) toggleParameters: (id)sender;
-(IBAction) toggleErrors: (id)sender;
-(IBAction) toggleMaintenance: (id)sender;
......
......@@ -19,7 +19,6 @@
#import "UIController.h"
@implementation UIController
//
......@@ -187,7 +186,6 @@
[alert setAlertStyle:NSWarningAlertStyle];
[alert runModal];
[alert release];
[ECU clearLastError];
}
......@@ -210,7 +208,7 @@
toolTip:(NSString *)toolTip
target:(id)target action:(SEL)action {
// Toolbaritem hinzufügen
NSToolbarItem *item = [[[NSToolbarItem alloc] initWithItemIdentifier: identifier] autorelease];
NSToolbarItem *item = [[NSToolbarItem alloc] initWithItemIdentifier: identifier];
[item setLabel:label];
[item setPaletteLabel:pLabel];
[item setToolTip:toolTip];
......@@ -251,7 +249,7 @@
nil];
}
-(void) setUpToolbar {
NSToolbar *toolbar = [[[NSToolbar alloc] initWithIdentifier: @"ttrmacToolbar"] autorelease];
NSToolbar *toolbar = [[NSToolbar alloc] initWithIdentifier: @"ttrmacToolbar"];
[self addToolbarItem:@"OpenParameters"
label:NSLocalizedString(@"Parameters", "toolbar item: show parameters")
......@@ -466,7 +464,7 @@
self = [super init];
if(self) {
toolbarItems = [[NSMutableDictionary dictionary] retain];
toolbarItems = [NSMutableDictionary dictionary];
drawerMaintenance = nil;
drawerParameters = nil;
}
......