]> Dogcows Code - chaz/thecheat/commitdiff
Remove support of Mac OS X 10.3 and earlier system, change codes for Mac OS X 10.7. yishen
authorYishen Miao <mys721tx@gmail.com>
Wed, 15 Feb 2012 05:59:42 +0000 (21:59 -0800)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Fri, 16 Mar 2012 23:46:55 +0000 (17:46 -0600)
33 files changed:
AppController.m
BetterTableView.m
ChazLog.m
ChazUpdate.m
CheatDocument.m
CheatURLCommand.m
DocCheaterDelegate.m
DocInterfaceActions.m
English.lproj/AboutBox.nib/classes.nib [deleted file]
English.lproj/AboutBox.nib/info.nib [deleted file]
English.lproj/AboutBox.nib/keyedobjects.nib
English.lproj/CheatDocument.nib/classes.nib [deleted file]
English.lproj/CheatDocument.nib/info.nib [deleted file]
English.lproj/CheatDocument.nib/keyedobjects.nib
English.lproj/Help.nib/classes.nib [deleted file]
English.lproj/Help.nib/info.nib [deleted file]
English.lproj/Help.nib/keyedobjects.nib
English.lproj/MainMenu.nib/classes.nib [deleted file]
English.lproj/MainMenu.nib/info.nib [deleted file]
English.lproj/MainMenu.nib/keyedobjects.nib
English.lproj/Preferences.nib/classes.nib [deleted file]
English.lproj/Preferences.nib/info.nib [deleted file]
English.lproj/Preferences.nib/keyedobjects.nib
Info.plist
LocalCheater.m
MySocket.m
PreferenceController.m
ServerPrefs.m
The Cheat.xcodeproj/project.pbxproj
ThreadedTask.m
Variable.m
VariableTable.m
main.m

index 1a787a2f563ca520fdd99e77e2b5d1e4ebad24cb..14c78631e6df71dda0e1ea24a54cd70c2a73862b 100644 (file)
 
 - (IBAction)newSearchWindow:(id)sender
 {
-       NSDocumentController    *controller = [NSDocumentController sharedDocumentController];
-       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document"];
+       NSError *error = nil;
+    NSDocumentController       *controller = [NSDocumentController sharedDocumentController];
+       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document" error:&error];
        if ( !doc ) {
-               ChazLog( @"nil document);
+               ChazLog( @"nil document, error=%@", error);
        }
        [doc setMode:TCSearchMode];
        [controller addDocument:doc];
 
 - (IBAction)newBlankCheatWindow:(id)sender
 {
+    NSError *error = nil;
        NSDocumentController    *controller = [NSDocumentController sharedDocumentController];
-       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document"];
+       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document" error:&error];
        if ( !doc ) {
-               ChazLog( @"nil document);
+               ChazLog( @"nil document, error=%@", error);
        }
        [doc setMode:TCCheatMode];
        [controller addDocument:doc];
index e6c412439cdff6341abf7642c556e9e729fab244..05f03f5e4876271ec061b01f193bf893beb9e272 100644 (file)
 
 - (NSArray *)selectedRows
 {
-       return [[self selectedRowEnumerator] allObjects];
+       return [[self selectedRowIndexes] allObjects];
 }
 
 
index 0f4d0371d6fcf18e93aaa02667e7ef8f980f723f..2f8eaa6cde97fc05c19e2fb46c4c8fe863602482 100644 (file)
--- a/ChazLog.m
+++ b/ChazLog.m
@@ -49,7 +49,7 @@ void ChazDebugSetup()
        FILE *file;
        
        // look for debug file
-       file = fopen( [filepath lossyCString], "r+" );
+       file = fopen( [filepath cStringUsingEncoding:NSUTF8StringEncoding], "r+" );
        
        if ( !file ) {
                // there is no debug file or we don't have permissions
@@ -58,7 +58,7 @@ void ChazDebugSetup()
        
        fclose( file );
        
-       _gDebugFile = fopen( [filepath lossyCString], "w" );
+       _gDebugFile = fopen( [filepath cStringUsingEncoding:NSUTF8StringEncoding], "w" );
        
        ChazDebug( @"Debug log found (obviously).  Entering debug mode." );
 }
@@ -150,7 +150,7 @@ void _ChazPrint( FILE *output, NSString *format, va_list args )
        
        fprintf( output, "[%s] %s\n", [[[NSDate date] descriptionWithCalendarFormat:@"%Y-%m-%d %H:%M:%S.%F"
                                                                                                                                           timeZone:nil
-                                                                                                                                                locale:nil] lossyCString], [string lossyCString] );
+                                                                                                                                                locale:nil] cStringUsingEncoding:NSUTF8StringEncoding], [string cStringUsingEncoding:NSUTF8StringEncoding] );
        fflush( output );
        
        [string release];
index 0d628b6055599c0336ff1314180e79a6b89303d9..9f6432c8e14b7e6f70071efb02fd1777e5ece241 100644 (file)
        }
        
        // see if the version information for this app is in another file
-       if ( appRedirect = [appDictionary objectForKey:@"Redirect"] ) {
+       if ( (appRedirect = [appDictionary objectForKey:@"Redirect"]) ) {
                // recursively follow the redirection
                [[ChazUpdate alloc] initWithURL:appRedirect name:_name verbose:_verbose];
                [self kill];
index 719737b1569b7e5c323e4779f568057a5e2c292f..d8fcb89798a2d61311c5c1be35c7273bc72756aa 100644 (file)
@@ -454,7 +454,7 @@ Process static *_tc_target = nil;
 
 - (BOOL)isLoadedFromFile
 {
-       return ([self fileName] != nil);
+       return ([self fileURL] != nil);
 }
 
 
@@ -1010,12 +1010,7 @@ Process static *_tc_target = nil;
        
        lastRow = [_cheatData variableCount]-1;
        [tableView reloadData];
-       if ( MacOSXVersion() >= 0x1030 ) {
-               [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:lastRow] byExtendingSelection:NO];
-       }
-       else {
-               [tableView selectRow:lastRow byExtendingSelection:NO];
-       }
+       [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:lastRow] byExtendingSelection:NO];
        [tableView scrollRowToVisible:lastRow];
        
        [self setDocumentChanged];
@@ -1034,12 +1029,8 @@ Process static *_tc_target = nil;
                // reselect the last item if the selection is now invalid
                len = [_cheatData variableCount] - 1;
                if ( [tableView selectedRow] > len ) {
-                       if ( MacOSXVersion() >= 0x1030 ) {
+            
                                [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:len] byExtendingSelection:NO];
-                       }
-                       else {
-                               [tableView selectRow:len byExtendingSelection:NO];
-                       }
                }
                [tableView reloadData];
                
index 576231d8c78370176171194361ab30d4bac98ccf..9d00f257757c2ea40e9b02368bf619462a4c308d 100644 (file)
@@ -18,7 +18,7 @@
 - (id)performDefaultImplementation
 {
        NSDocumentController    *controller = [NSDocumentController sharedDocumentController];
-       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document"];
+       CheatDocument                   *doc = [controller makeUntitledDocumentOfType:@"Cheat Document" error:nil];
        if ( !doc ) {
                ChazLog( @"nil document" );
        }
index 0ba9ce4ce92d16952c90b66640b624d34b5ba074..d48aa79b8f95c854a1167bc78651594f0d4c1fc0 100644 (file)
                [_cheater setTarget:selectThis];
        }
        // otherwise, select the global target
-       else if ( selectThis = [CheatDocument globalTarget] ) {
+       else if ( (selectThis = [CheatDocument globalTarget]) ) {
                ChazLog( @"setting global target" );
                [_cheater setTarget:selectThis];
        }
                _status = TCIdleStatus;
                
                panel = [NSSavePanel savePanel];
-               [panel setRequiredFileType:@"dump"];
+               [panel setAllowedFileTypes:[NSArray arrayWithObjects: @"dump", nil]];
                [panel setExtensionHidden:NO];
                [panel setCanSelectHiddenExtension:YES];
-               if ( MacOSXVersion() >= 0x1030 ) {
-                       [panel setMessage:@"Dump files are huge!  Exercise patience while saving."];
-               }
-               
+        [panel setMessage:@"Dump files are huge!  Exercise patience while saving."];
                [panel beginSheetForDirectory:nil
                                                                 file:[NSString stringWithFormat:[NSString stringWithFormat:@"%@.dump", [_process name]]]
                                           modalForWindow:ibWindow
index 26542d690600f545991eb00b6fd0c943c68dd146..b2e120868eb1c99ba5693694456ab48aeaf1976d 100644 (file)
@@ -52,7 +52,8 @@
 
 - (IBAction)ibSetRemoteCheater:(id)sender
 {
-       ChazLog( @"Selected %@", sender );
+       int timeout=5;
+    ChazLog( @"Selected %@", sender );
        
        if ( ![self shouldConnectWithServer:sender] ) {
                return;
@@ -62,7 +63,7 @@
        
        _resolvingService = [[sender representedObject] retain];
        [_resolvingService setDelegate:self];
-       [_resolvingService resolve];
+       [_resolvingService resolveWithTimeout:timeout];
 }
 
 - (void)netServiceDidResolveAddress:(NSNetService *)sender
                [self switchToCheatMode];
                
                int rowIndex = [_cheatData variableCount]-1;
-               if ( MacOSXVersion() >= 0x1030 ) {
-                       [ibCheatVariableTable selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:NO];
-               }
-               else {
-                       [ibCheatVariableTable selectRow:rowIndex byExtendingSelection:NO];
-               }
+        [ibCheatVariableTable selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:NO];
                // start editing the last added variable
                if ( [[NSUserDefaults standardUserDefaults] boolForKey:TCAutoStartEditingVarsPref] ) {
                        if ( top > 1 ) {
-                               // edit multiple
-                               if ( MacOSXVersion() >= 0x1030 ) {
-                                       [ibCheatVariableTable selectRowIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(rowIndex-top+1,top-1)]
-                                                                         byExtendingSelection:YES];
-                               }
-                               else {
-                                       for ( i = 1; i < top; i++ ) {
-                                               [ibCheatVariableTable selectRow:rowIndex-i byExtendingSelection:YES];
-                                       }
-                               }
+                [ibCheatVariableTable selectRowIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(rowIndex-top+1,top-1)] byExtendingSelection:YES];
                                [ibCheatVariableTable scrollRowToVisible:rowIndex];
                                [self ibRunEditVariablesSheet:nil];
                        }
                [self switchToCheatMode];
                
                int row = [_cheatData variableCount]-1;
-               if ( MacOSXVersion() >= 0x1030 ) {
-                       [ibCheatVariableTable selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
-               }
-               else {
-                       [ibCheatVariableTable selectRow:row byExtendingSelection:NO];
-               }
+        [ibCheatVariableTable selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
                // start editing new variable
                if ( [[NSUserDefaults standardUserDefaults] boolForKey:TCAutoStartEditingVarsPref] ) {
                        [ibCheatVariableTable editColumn:[ibCheatVariableTable columnWithIdentifier:@"address"] row:row withEvent:nil select:YES];
diff --git a/English.lproj/AboutBox.nib/classes.nib b/English.lproj/AboutBox.nib/classes.nib
deleted file mode 100644 (file)
index f9f3920..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-{
-    IBClasses = (
-        {
-            ACTIONS = {ibEmailButton = id; ibWebsiteButton = id; }; 
-            CLASS = AboutBoxController; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {
-                ibDateText = NSTextField; 
-                ibEmailButton = NSButton; 
-                ibNameVersionText = NSTextField; 
-                ibWebsiteButton = NSButton; 
-            }; 
-            SUPERCLASS = NSWindowController; 
-        }, 
-        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }
-    ); 
-    IBVersion = 1; 
-}
\ No newline at end of file
diff --git a/English.lproj/AboutBox.nib/info.nib b/English.lproj/AboutBox.nib/info.nib
deleted file mode 100644 (file)
index 4c7b4ef..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-       <key>IBDocumentLocation</key>
-       <string>124 93 356 241 0 0 1280 938 </string>
-       <key>IBFramework Version</key>
-       <string>364.0</string>
-       <key>IBGroupedObjects</key>
-       <dict>
-               <key>3</key>
-               <array>
-                       <string>93</string>
-                       <string>91</string>
-               </array>
-               <key>7</key>
-               <array>
-                       <string>77</string>
-                       <string>80</string>
-                       <string>87</string>
-               </array>
-               <key>8</key>
-               <array>
-                       <string>89</string>
-                       <string>81</string>
-               </array>
-       </dict>
-       <key>IBLastGroupID</key>
-       <string>9</string>
-       <key>IBOpenObjects</key>
-       <array>
-               <integer>85</integer>
-       </array>
-       <key>IBSystem Version</key>
-       <string>7U16</string>
-</dict>
-</plist>
index 7ef2eec207537913e91a8f51c1832eb4c6ce0404..a4805a018bda6475eac1c926869de6d372e584cf 100644 (file)
Binary files a/English.lproj/AboutBox.nib/keyedobjects.nib and b/English.lproj/AboutBox.nib/keyedobjects.nib differ
diff --git a/English.lproj/CheatDocument.nib/classes.nib b/English.lproj/CheatDocument.nib/classes.nib
deleted file mode 100644 (file)
index ae50211..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-{
-    IBClasses = (
-        {
-            ACTIONS = {copy = id; cut = id; delete = id; paste = id; }; 
-            CLASS = BetterTableView; 
-            LANGUAGE = ObjC; 
-            SUPERCLASS = NSTableView; 
-        }, 
-        {
-            ACTIONS = {
-                ibAddCheatVariable = id; 
-                ibAddSearchVariable = id; 
-                ibCancelDump = id; 
-                ibCancelSearch = id; 
-                ibCheat = id; 
-                ibClearSearch = id; 
-                ibDumpMemory = id; 
-                ibEndCustomServerSheet = id; 
-                ibEndEditVariablesSheet = id; 
-                ibEndPasswordSheet = id; 
-                ibEndPropertiesSheet = id; 
-                ibPauseTarget = id; 
-                ibRedo = id; 
-                ibResumeTarget = id; 
-                ibRunCustomServerSheet = id; 
-                ibRunEditVariablesSheet = id; 
-                ibRunPasswordSheet = id; 
-                ibRunPropertiesSheet = id; 
-                ibSearch = id; 
-                ibSetCheatRepeats = id; 
-                ibSetCustomCheater = id; 
-                ibSetIntegerSign = id; 
-                ibSetLocalCheater = id; 
-                ibSetNoCheater = id; 
-                ibSetOperator = id; 
-                ibSetProcess = id; 
-                ibSetRemoteCheater = id; 
-                ibSetRepeatInterval = id; 
-                ibSetValueUsed = id; 
-                ibSetVariableEnabled = id; 
-                ibSetVariableType = id; 
-                ibStopCheat = id; 
-                ibToggleSearchCheat = id; 
-                ibUndo = id; 
-            }; 
-            CLASS = CheatDocument; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {
-                ibCheatButton = NSButton; 
-                ibCheatContentView = NSView; 
-                ibCheatInfoField = NSTextField; 
-                ibCheatInfoText = NSTextField; 
-                ibCheatRepeatAuxText = NSTextField; 
-                ibCheatRepeatButton = NSButton; 
-                ibCheatRepeatField = NSTextField; 
-                ibCheatVariableTable = BetterTableView; 
-                ibCustomServerSheet = NSWindow; 
-                ibEditVariablesSheet = NSWindow; 
-                ibNewValueField = NSTextField; 
-                ibPasswordField = NSTextField; 
-                ibPasswordSheet = NSWindow; 
-                ibPlaceView = NSView; 
-                ibPortField = NSTextField; 
-                ibProcessPopup = NSPopUpButton; 
-                ibPropertiesSheet = NSWindow; 
-                ibSearchButton = NSButton; 
-                ibSearchClearButton = NSButton; 
-                ibSearchContentView = NSView; 
-                ibSearchIntegerSignMatrix = NSMatrix; 
-                ibSearchOperatorPopup = NSPopUpButton; 
-                ibSearchTypePopup = NSPopUpButton; 
-                ibSearchValueField = NSTextField; 
-                ibSearchValueUsedMatrix = NSMatrix; 
-                ibSearchVariableButton = NSButton; 
-                ibSearchVariableTable = VariableTable; 
-                ibServerField = NSTextField; 
-                ibServerPopup = NSPopUpButton; 
-                ibStatusBar = NSProgressIndicator; 
-                ibStatusText = StatusTextField; 
-                ibWindow = NSWindow; 
-                ibWindowTitleField = NSTextField; 
-            }; 
-            SUPERCLASS = NSDocument; 
-        }, 
-        {
-            ACTIONS = {fadeToCheatMode = id; fadeToSessionMode = id; }; 
-            CLASS = FirstResponder; 
-            LANGUAGE = ObjC; 
-            SUPERCLASS = NSObject; 
-        }, 
-        {CLASS = NSObject; LANGUAGE = ObjC; }, 
-        {CLASS = StatusTextField; LANGUAGE = ObjC; SUPERCLASS = NSTextField; }, 
-        {CLASS = VariableTable; LANGUAGE = ObjC; SUPERCLASS = BetterTableView; }
-    ); 
-    IBVersion = 1; 
-}
\ No newline at end of file
diff --git a/English.lproj/CheatDocument.nib/info.nib b/English.lproj/CheatDocument.nib/info.nib
deleted file mode 100644 (file)
index 08b8173..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-       <key>IBDocumentLocation</key>
-       <string>540 85 356 394 0 0 1280 938 </string>
-       <key>IBEditorPositions</key>
-       <dict>
-               <key>24</key>
-               <string>420 519 440 253 0 0 1280 938 </string>
-               <key>45</key>
-               <string>420 519 440 253 0 0 1280 938 </string>
-       </dict>
-       <key>IBFramework Version</key>
-       <string>437.0</string>
-       <key>IBOpenObjects</key>
-       <array>
-               <integer>122</integer>
-               <integer>757</integer>
-               <integer>643</integer>
-               <integer>45</integer>
-               <integer>5</integer>
-               <integer>24</integer>
-               <integer>483</integer>
-       </array>
-       <key>IBSystem Version</key>
-       <string>8B15</string>
-</dict>
-</plist>
index da680c876d47fa2474f1ac8d1ca30da460ffabe9..17ef4b2973cddd3c3ac3a8dd28d9f98f33830279 100644 (file)
Binary files a/English.lproj/CheatDocument.nib/keyedobjects.nib and b/English.lproj/CheatDocument.nib/keyedobjects.nib differ
diff --git a/English.lproj/Help.nib/classes.nib b/English.lproj/Help.nib/classes.nib
deleted file mode 100644 (file)
index cd782fb..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-{
-    IBClasses = (
-        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 
-        {
-            CLASS = HelpController; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {helpWindow = NSWindow; webView = WebView; }; 
-            SUPERCLASS = NSWindowController; 
-        }
-    ); 
-    IBVersion = 1; 
-}
\ No newline at end of file
diff --git a/English.lproj/Help.nib/info.nib b/English.lproj/Help.nib/info.nib
deleted file mode 100644 (file)
index f188829..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-       <key>IBDocumentLocation</key>
-       <string>69 61 356 241 0 0 1280 1002 </string>
-       <key>IBFramework Version</key>
-       <string>364.0</string>
-       <key>IBOpenObjects</key>
-       <array>
-               <integer>18</integer>
-       </array>
-       <key>IBSystem Version</key>
-       <string>7U16</string>
-</dict>
-</plist>
index 4c755458bb49138d751e876916cea5c8934889e3..4172d49a876962f1ce6c7c64b84aac5c3b7f17f1 100644 (file)
Binary files a/English.lproj/Help.nib/keyedobjects.nib and b/English.lproj/Help.nib/keyedobjects.nib differ
diff --git a/English.lproj/MainMenu.nib/classes.nib b/English.lproj/MainMenu.nib/classes.nib
deleted file mode 100644 (file)
index 6fcccc7..0000000
+++ /dev/null
@@ -1,255 +0,0 @@
-<?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>IBClasses</key>
-       <array>
-               <dict>
-                       <key>ACTIONS</key>
-                       <dict>
-                               <key>ibAddCheatVariable</key>
-                               <string>id</string>
-                               <key>ibAddSearchVariable</key>
-                               <string>id</string>
-                               <key>ibCancelDump</key>
-                               <string>id</string>
-                               <key>ibCancelSearch</key>
-                               <string>id</string>
-                               <key>ibCheat</key>
-                               <string>id</string>
-                               <key>ibClearSearch</key>
-                               <string>id</string>
-                               <key>ibDumpMemory</key>
-                               <string>id</string>
-                               <key>ibEndCustomServerSheet</key>
-                               <string>id</string>
-                               <key>ibEndEditVariablesSheet</key>
-                               <string>id</string>
-                               <key>ibEndPasswordSheet</key>
-                               <string>id</string>
-                               <key>ibEndPropertiesSheet</key>
-                               <string>id</string>
-                               <key>ibPauseTarget</key>
-                               <string>id</string>
-                               <key>ibRedo</key>
-                               <string>id</string>
-                               <key>ibResumeTarget</key>
-                               <string>id</string>
-                               <key>ibRunCustomServerSheet</key>
-                               <string>id</string>
-                               <key>ibRunEditVariablesSheet</key>
-                               <string>id</string>
-                               <key>ibRunPasswordSheet</key>
-                               <string>id</string>
-                               <key>ibRunPropertiesSheet</key>
-                               <string>id</string>
-                               <key>ibSearch</key>
-                               <string>id</string>
-                               <key>ibSetCheatRepeats</key>
-                               <string>id</string>
-                               <key>ibSetCustomCheater</key>
-                               <string>id</string>
-                               <key>ibSetIntegerSign</key>
-                               <string>id</string>
-                               <key>ibSetLocalCheater</key>
-                               <string>id</string>
-                               <key>ibSetNoCheater</key>
-                               <string>id</string>
-                               <key>ibSetOperator</key>
-                               <string>id</string>
-                               <key>ibSetProcess</key>
-                               <string>id</string>
-                               <key>ibSetRemoteCheater</key>
-                               <string>id</string>
-                               <key>ibSetRepeatInterval</key>
-                               <string>id</string>
-                               <key>ibSetValueUsed</key>
-                               <string>id</string>
-                               <key>ibSetVariableEnabled</key>
-                               <string>id</string>
-                               <key>ibSetVariableType</key>
-                               <string>id</string>
-                               <key>ibStopCheat</key>
-                               <string>id</string>
-                               <key>ibToggleSearchCheat</key>
-                               <string>id</string>
-                               <key>ibUndo</key>
-                               <string>id</string>
-                       </dict>
-                       <key>CLASS</key>
-                       <string>CheatDocument</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>OUTLETS</key>
-                       <dict>
-                               <key>ibCheatButton</key>
-                               <string>NSButton</string>
-                               <key>ibCheatContentView</key>
-                               <string>NSView</string>
-                               <key>ibCheatInfoField</key>
-                               <string>NSTextField</string>
-                               <key>ibCheatInfoText</key>
-                               <string>NSTextField</string>
-                               <key>ibCheatRepeatAuxText</key>
-                               <string>NSTextField</string>
-                               <key>ibCheatRepeatButton</key>
-                               <string>NSButton</string>
-                               <key>ibCheatRepeatField</key>
-                               <string>NSTextField</string>
-                               <key>ibCheatVariableTable</key>
-                               <string>BetterTableView</string>
-                               <key>ibCustomServerSheet</key>
-                               <string>NSWindow</string>
-                               <key>ibEditVariablesSheet</key>
-                               <string>NSWindow</string>
-                               <key>ibNewValueField</key>
-                               <string>NSTextField</string>
-                               <key>ibPasswordField</key>
-                               <string>NSTextField</string>
-                               <key>ibPasswordSheet</key>
-                               <string>NSWindow</string>
-                               <key>ibPlaceView</key>
-                               <string>NSView</string>
-                               <key>ibPortField</key>
-                               <string>NSTextField</string>
-                               <key>ibProcessPopup</key>
-                               <string>NSPopUpButton</string>
-                               <key>ibPropertiesSheet</key>
-                               <string>NSWindow</string>
-                               <key>ibSearchButton</key>
-                               <string>NSButton</string>
-                               <key>ibSearchClearButton</key>
-                               <string>NSButton</string>
-                               <key>ibSearchContentView</key>
-                               <string>NSView</string>
-                               <key>ibSearchIntegerSignMatrix</key>
-                               <string>NSMatrix</string>
-                               <key>ibSearchOperatorPopup</key>
-                               <string>NSPopUpButton</string>
-                               <key>ibSearchTypePopup</key>
-                               <string>NSPopUpButton</string>
-                               <key>ibSearchValueField</key>
-                               <string>NSTextField</string>
-                               <key>ibSearchValueUsedMatrix</key>
-                               <string>NSMatrix</string>
-                               <key>ibSearchVariableButton</key>
-                               <string>NSButton</string>
-                               <key>ibSearchVariableTable</key>
-                               <string>VariableTable</string>
-                               <key>ibServerField</key>
-                               <string>NSTextField</string>
-                               <key>ibServerPopup</key>
-                               <string>NSPopUpButton</string>
-                               <key>ibStatusBar</key>
-                               <string>NSProgressIndicator</string>
-                               <key>ibStatusText</key>
-                               <string>StatusTextField</string>
-                               <key>ibWindow</key>
-                               <string>NSWindow</string>
-                               <key>ibWindowTitleField</key>
-                               <string>NSTextField</string>
-                       </dict>
-                       <key>SUPERCLASS</key>
-                       <string>NSDocument</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
-                       <string>BetterTableView</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSTableView</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
-                       <string>NSMenu</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
-                       <string>StatusTextField</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSTextField</string>
-               </dict>
-               <dict>
-                       <key>ACTIONS</key>
-                       <dict>
-                               <key>ibAddCheatVariable</key>
-                               <string>id</string>
-                               <key>ibCancelSearch</key>
-                               <string>id</string>
-                               <key>ibClearSearch</key>
-                               <string>id</string>
-                               <key>ibDumpMemory</key>
-                               <string>id</string>
-                               <key>ibPauseTarget</key>
-                               <string>id</string>
-                               <key>ibRedo</key>
-                               <string>id</string>
-                               <key>ibRunEditVariablesSheet</key>
-                               <string>id</string>
-                               <key>ibRunPropertiesSheet</key>
-                               <string>id</string>
-                               <key>ibToggleSearchCheat</key>
-                               <string>id</string>
-                               <key>ibUndo</key>
-                               <string>id</string>
-                       </dict>
-                       <key>CLASS</key>
-                       <string>FirstResponder</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSObject</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
-                       <string>NSObject</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-               </dict>
-               <dict>
-                       <key>CLASS</key>
-                       <string>VariableTable</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>BetterTableView</string>
-               </dict>
-               <dict>
-                       <key>ACTIONS</key>
-                       <dict>
-                               <key>checkForUpdate</key>
-                               <string>id</string>
-                               <key>launchEmailMenu</key>
-                               <string>id</string>
-                               <key>launchHelpFile</key>
-                               <string>id</string>
-                               <key>launchWebsiteMenu</key>
-                               <string>id</string>
-                               <key>newBlankCheatWindow</key>
-                               <string>id</string>
-                               <key>newSearchWindow</key>
-                               <string>id</string>
-                               <key>showAboutBoxWindow</key>
-                               <string>id</string>
-                               <key>showPreferenceWindow</key>
-                               <string>id</string>
-                       </dict>
-                       <key>CLASS</key>
-                       <string>AppController</string>
-                       <key>LANGUAGE</key>
-                       <string>ObjC</string>
-                       <key>SUPERCLASS</key>
-                       <string>NSApplication</string>
-               </dict>
-       </array>
-       <key>IBVersion</key>
-       <string>1</string>
-</dict>
-</plist>
diff --git a/English.lproj/MainMenu.nib/info.nib b/English.lproj/MainMenu.nib/info.nib
deleted file mode 100644 (file)
index 5056bdd..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?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>IBFramework Version</key>
-       <string>677</string>
-       <key>IBLastKnownRelativeProjectPath</key>
-       <string>../The Cheat.xcodeproj</string>
-       <key>IBOldestOS</key>
-       <integer>5</integer>
-       <key>IBOpenObjects</key>
-       <array>
-               <integer>370</integer>
-       </array>
-       <key>IBSystem Version</key>
-       <string>9J61</string>
-       <key>targetFramework</key>
-       <string>IBCocoaFramework</string>
-</dict>
-</plist>
index d2e9b952cc38d80927c085d5e50ee6bde1315224..7de3ab6a2810a564380b83d71a10dd27b0c61f20 100644 (file)
Binary files a/English.lproj/MainMenu.nib/keyedobjects.nib and b/English.lproj/MainMenu.nib/keyedobjects.nib differ
diff --git a/English.lproj/Preferences.nib/classes.nib b/English.lproj/Preferences.nib/classes.nib
deleted file mode 100644 (file)
index 4ee476b..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-{
-    IBClasses = (
-        {
-            ACTIONS = {copy = id; cut = id; delete = id; paste = id; }; 
-            CLASS = BetterTableView; 
-            LANGUAGE = ObjC; 
-            SUPERCLASS = NSTableView; 
-        }, 
-        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 
-        {
-            ACTIONS = {
-                ibDisplayValuesButton = id; 
-                ibSetAskForSave = id; 
-                ibSetFadeSmoothly = id; 
-                ibSetResultsDisplayed = id; 
-                ibSetValueUpdate = id; 
-                ibStartEditingVarsButton = id; 
-                ibSwitchVariablesButton = id; 
-                ibWindowOrderButton = id; 
-            }; 
-            CLASS = GeneralPrefs; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {
-                ibAskForSaveButton = NSButton; 
-                ibDisplayValuesButton = NSButton; 
-                ibFadeSmoothlyButton = NSButton; 
-                ibResultsDisplayedField = NSTextField; 
-                ibStartEditingVarsButton = NSButton; 
-                ibSwitchVariablesButton = NSButton; 
-                ibValueUpdateField = NSTextField; 
-                ibWindowOrderButton = NSButton; 
-            }; 
-            SUPERCLASS = NSObject; 
-        }, 
-        {CLASS = NSObject; LANGUAGE = ObjC; }, 
-        {
-            CLASS = PreferenceController; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {ibGeneralView = NSView; ibServerView = NSView; ibUpdateCheckView = NSView; }; 
-            SUPERCLASS = NSWindowController; 
-        }, 
-        {
-            ACTIONS = {ibSetBroadcast = id; ibSetListenPort = id; ibStartServer = id; }; 
-            CLASS = ServerPrefs; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {
-                ibDefaultPortText = NSTextField; 
-                ibNameField = NSTextField; 
-                ibPortField = NSTextField; 
-                ibSessionTable = NSTableView; 
-                ibStartButton = NSButton; 
-                ibStatusField = StatusTextField; 
-            }; 
-            SUPERCLASS = NSObject; 
-        }, 
-        {CLASS = StatusTextField; LANGUAGE = ObjC; SUPERCLASS = NSTextField; }, 
-        {
-            ACTIONS = {ibAutoCheckButton = id; ibCheckNowButton = id; }; 
-            CLASS = UpdatePrefs; 
-            LANGUAGE = ObjC; 
-            OUTLETS = {ibAutoCheckButton = NSButton; }; 
-            SUPERCLASS = NSObject; 
-        }
-    ); 
-    IBVersion = 1; 
-}
\ No newline at end of file
diff --git a/English.lproj/Preferences.nib/info.nib b/English.lproj/Preferences.nib/info.nib
deleted file mode 100644 (file)
index 1dd0f12..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-       <key>IBDocumentLocation</key>
-       <string>333 104 431 282 0 0 1280 938 </string>
-       <key>IBEditorPositions</key>
-       <dict>
-               <key>441</key>
-               <string>325 550 476 321 0 0 1280 938 </string>
-               <key>463</key>
-               <string>402 570 476 210 0 0 1280 938 </string>
-               <key>478</key>
-               <string>402 433 476 420 0 0 1280 938 </string>
-       </dict>
-       <key>IBFramework Version</key>
-       <string>437.0</string>
-       <key>IBLockedObjects</key>
-       <array/>
-       <key>IBOpenObjects</key>
-       <array>
-               <integer>441</integer>
-       </array>
-       <key>IBSystem Version</key>
-       <string>8A428</string>
-</dict>
-</plist>
index 407c805e4d4e3d529615f8253e6a3d1e648249df..761dc75169c3f1091e85ac2ede8edd28cdf09380 100644 (file)
Binary files a/English.lproj/Preferences.nib/keyedobjects.nib and b/English.lproj/Preferences.nib/keyedobjects.nib differ
index cd8ee2bc7bfe2f4b7cf919aa3833ae79028b6778..6c7dfdae9ef533a7d809ce7d9f9a14b300f736ea 100644 (file)
@@ -35,8 +35,6 @@
        <string>icon.icns</string>
        <key>CFBundleIdentifier</key>
        <string>com.brokenzipper.TheCheat</string>
-       <key>SecTaskAccess</key>
-       <string>allowed</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
@@ -44,7 +42,7 @@
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
-       <string>1.2.5</string>
+       <string>1.2.6</string>
        <key>CFBundleSignature</key>
        <string>chÅ“t</string>
        <key>CFBundleURLTypes</key>
                </dict>
        </array>
        <key>CFBundleVersion</key>
-       <string>1.2.5</string>
+       <string>1.2.6</string>
        <key>NSAppleScriptEnabled</key>
        <string>YES</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>
        <string>AppController</string>
+       <key>SecTaskAccess</key>
+       <string>allowed</string>
 </dict>
 </plist>
index 06796a18be0bf4a2a4a7d23069846f5e4fa5d877..157b43a7d48d87606de2ef6f4190cd2d0b6da083 100644 (file)
@@ -420,13 +420,13 @@ int _MemoryDumpTask( ThreadedTask *task, unsigned iteration )
        TCArray variables;
        TCArray values;
        
-       if ( searchContext = [_searchResults lastObject] ) {
+       if ( (searchContext = [_searchResults lastObject]) ) {
                [_savedResults addObject:searchContext];
                [_searchResults removeLastObject];
                
                [self stopWatchingVariables];
 
-               if ( searchContext = [_searchResults lastObject] ) {
+               if ( (searchContext = [_searchResults lastObject]) ) {
                        if ( _shouldCopy ) {
                                variables = TCArrayCopyElements( searchContext->addresses, _returnLimit );
                                values = TCArrayCopyElements( searchContext->values, _returnLimit );
@@ -452,7 +452,7 @@ int _MemoryDumpTask( ThreadedTask *task, unsigned iteration )
        
        [self stopWatchingVariables];
        
-       if ( searchContext = [_savedResults lastObject] ) {
+       if ( (searchContext = [_savedResults lastObject]) ) {
                [_searchResults addObject:searchContext];
                [_savedResults removeLastObject];
                
@@ -486,7 +486,7 @@ int _MemoryDumpTask( ThreadedTask *task, unsigned iteration )
                return;
        }
        
-       if ( context = [_searchResults lastObject] ) {
+       if ( (context = [_searchResults lastObject]) ) {
                TCArray addresses = context->addresses;
                TCArray values = context->values;
                // check the index & count
index fdbee922fbe8b36a8f182ea3eb6d76beaeea4948..091e30db5ca6bd0b017c299576512a315551518c 100644 (file)
@@ -222,7 +222,8 @@ struct _mySocketGlobals {
        addr.sin_family = AF_INET;
        addr.sin_port = htons( (short)port );
        addr.sin_addr.s_addr = INADDR_ANY;
-       memset( &(addr.sin_zero), NULL, 8 );
+    // Use 0 replace NULL
+       memset( &(addr.sin_zero), 0, 8 );
        
        err = bind( _sockfd, (struct sockaddr *)(&addr), sizeof(addr) );
        if ( err == -1 ) {
@@ -394,7 +395,7 @@ struct _mySocketGlobals {
        if ( err == -1 ) {
                return @"";
        }
-       return [NSString stringWithCString:host];
+       return [NSString stringWithCString:host encoding:NSUTF8StringEncoding];
 }
 
 - (int)localPort
@@ -406,20 +407,20 @@ struct _mySocketGlobals {
 {
        int err;
        struct sockaddr_in addr;
-       int len = sizeof(addr);
+       unsigned int len = sizeof(addr);
        
        err = getpeername( _sockfd, (struct sockaddr *)(&addr), &len );
        if ( err == -1 ) {
                return @"Unknown";
        }
-       return [NSString stringWithCString:inet_ntoa(addr.sin_addr)];
+       return [NSString stringWithCString:inet_ntoa(addr.sin_addr) encoding:NSUTF8StringEncoding];
 }
 
 - (int)remotePort
 {
        int err;
        struct sockaddr_in addr;
-       int len = sizeof(addr);
+       unsigned int len = sizeof(addr);
        
        err = getpeername( _sockfd, (struct sockaddr *)(&addr), &len );
        if ( err == -1 ) {
@@ -446,7 +447,7 @@ struct _mySocketGlobals {
        struct sockaddr_in addr;
        
        // resolve the host
-       h = gethostbyname( [host lossyCString] );
+       h = gethostbyname( [host cStringUsingEncoding:NSUTF8StringEncoding] );
        if ( h == NULL ) {
                // host not found
                return nil;
@@ -456,7 +457,8 @@ struct _mySocketGlobals {
        addr.sin_family = AF_INET;
        addr.sin_port = htons( (short)port );
        memcpy( &(addr.sin_addr), h->h_addr, sizeof(struct in_addr) );
-       memset( &(addr.sin_zero), NULL, 8 );
+    // Use 0 replace NULL
+       memset( &(addr.sin_zero), 0, 8 );
        
        return [NSData dataWithBytes:&addr length:sizeof(addr)];
 }
@@ -803,7 +805,7 @@ DONE:;
        MySocket *newSocket;
        int newsockfd;
        struct sockaddr addr;
-       int addrlen = sizeof(addr);
+       unsigned int addrlen = sizeof(addr);
        
        newsockfd = accept( _sockfd, &addr, &addrlen );
        if ( newsockfd >= 0 ) {
@@ -866,7 +868,7 @@ DONE:;
        [_writeLock lock];
        if ( [_writeQueue count] > 0 ) {
                int buflen = 0;
-               int len = sizeof(buflen);
+               unsigned int len = sizeof(buflen);
                int err;
                err = getsockopt( _sockfd, SOL_SOCKET, SO_SNDBUF, &buflen, &len );
                // write data
@@ -1013,7 +1015,7 @@ DONE:;
        NSMutableData *buffer;
        unsigned packetLen = *len;
        
-       if ( buffer = _unclaimedData ) {
+       if ( (buffer = _unclaimedData) ) {
                // claim the bytes
                int unclaimedLen = [_unclaimedData length];
                if ( unclaimedLen > packetLen ) {
index 8a558108a5bba2926a6ec58bb0991a30eb7c3ce4..3416d173d3ecf4bf5e34301607b93edfb0766e86 100644 (file)
@@ -56,9 +56,7 @@
        NSWindow *window = [self window];
        [self switchToView:ibGeneralView];
        [window setTitle:@"General"];
-       if ( MacOSXVersion() >= 0x1030 ) {
-               [_toolbar setSelectedItemIdentifier:@"General"];
-       }
+    [_toolbar setSelectedItemIdentifier:@"General"];
 }
 
 - (void)chooseServer:(id)object
@@ -66,9 +64,7 @@
        NSWindow *window = [self window];
        [self switchToView:ibServerView];
        [window setTitle:@"Server"];
-       if ( MacOSXVersion() >= 0x1030 ) {
-               [_toolbar setSelectedItemIdentifier:@"Server"];
-       }
+    [_toolbar setSelectedItemIdentifier:@"Server"];
 }
 
 - (void)chooseUpdate:(id)object
@@ -76,9 +72,7 @@
        NSWindow *window = [self window];
        [self switchToView:ibUpdateCheckView];
        [window setTitle:@"Update Check"];
-       if ( MacOSXVersion() >= 0x1030 ) {
-               [_toolbar setSelectedItemIdentifier:@"Update Check"];
-       }
+    [_toolbar setSelectedItemIdentifier:@"Update Check"];
 }
 
 - (void)switchToView:(NSView *)view
index b03421830f2e86fba8c5c52facfa921fa6e4183a..3d2637f7158ef2acbe04d945ae7552eca93d286f 100644 (file)
        // reselect the last item if the selection is now invalid
        len = [[NSApp cheatServer] childCount] - 1;
        if ( [aTableView selectedRow] > len ) {
-               [aTableView selectRow:len byExtendingSelection:NO];
+               [aTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:len] byExtendingSelection:NO];
        }
        [aTableView reloadData];
 }
index 948bf26a026f429a61ebdef8ad1104990f1e1e9c..d6af02a23b89facfd245f7cd4ba8f8270d47264e 100644 (file)
@@ -3,7 +3,7 @@
        archiveVersion = 1;
        classes = {
        };
-       objectVersion = 45;
+       objectVersion = 46;
        objects = {
 
 /* Begin PBXBuildFile section */
 /* Begin PBXProject section */
                29B97313FDCFA39411CA2CEA /* Project object */ = {
                        isa = PBXProject;
+                       attributes = {
+                               LastUpgradeCheck = 0420;
+                       };
                        buildConfigurationList = 779E59840EB52C64000C6482 /* Build configuration list for PBXProject "The Cheat" */;
-                       compatibilityVersion = "Xcode 3.1";
+                       compatibilityVersion = "Xcode 3.2";
                        developmentRegion = English;
                        hasScannedForEncodings = 1;
                        knownRegions = (
                                Japanese,
                                French,
                                German,
+                               "zh-Hans",
                        );
                        mainGroup = 29B97314FDCFA39411CA2CEA /* The Cheat */;
                        projectDirPath = "";
                779E59810EB52C64000C6482 /* Development */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               CODE_SIGN_IDENTITY = "";
                                COPY_PHASE_STRIP = NO;
                                DEAD_CODE_STRIPPING = YES;
                                DEBUGGING_SYMBOLS = YES;
                                FRAMEWORK_SEARCH_PATHS = "";
                                GCC_AUTO_VECTORIZATION = YES;
                                GCC_DYNAMIC_NO_PIC = NO;
-                               GCC_ENABLE_FIX_AND_CONTINUE = YES;
-                               GCC_ENABLE_OBJC_EXCEPTIONS = NO;
+                               GCC_ENABLE_OBJC_EXCEPTIONS = YES;
                                GCC_ENABLE_TRIGRAPHS = NO;
                                GCC_FAST_OBJC_DISPATCH = YES;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
                                HEADER_SEARCH_PATHS = "";
                                INFOPLIST_FILE = Info.plist;
-                               INSTALL_PATH = "$(HOME)/Applications";
+                               INSTALL_PATH = /Applications;
                                LIBRARY_SEARCH_PATHS = "";
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
+                               MACOSX_DEPLOYMENT_TARGET = 10.7;
                                OTHER_CFLAGS = "-D_DEBUG";
                                OTHER_LDFLAGS = (
                                        "-sectcreate",
                                        Info.plist,
                                );
                                PRODUCT_NAME = "The Cheat";
+                               SDKROOT = macosx;
                                SECTORDER_FLAGS = "";
                                WARNING_CFLAGS = (
                                        "-Wmost",
                779E59820EB52C64000C6482 /* Deployment */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
-                               ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+                               ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
                                CODE_SIGN_IDENTITY = "";
                                COPY_PHASE_STRIP = YES;
                                DEAD_CODE_STRIPPING = YES;
                                FRAMEWORK_SEARCH_PATHS = "";
                                GCC_AUTO_VECTORIZATION = YES;
                                GCC_DYNAMIC_NO_PIC = YES;
-                               GCC_ENABLE_FIX_AND_CONTINUE = NO;
-                               GCC_ENABLE_OBJC_EXCEPTIONS = NO;
+                               GCC_ENABLE_OBJC_EXCEPTIONS = YES;
                                GCC_ENABLE_TRIGRAPHS = NO;
                                GCC_FAST_OBJC_DISPATCH = YES;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
                                HEADER_SEARCH_PATHS = "";
                                INFOPLIST_FILE = Info.plist;
-                               INSTALL_PATH = "$(HOME)/Applications";
+                               INSTALL_PATH = /Applications;
                                LIBRARY_SEARCH_PATHS = "";
-                               MACOSX_DEPLOYMENT_TARGET = 10.2;
+                               MACOSX_DEPLOYMENT_TARGET = 10.7;
                                OTHER_CFLAGS = "";
                                OTHER_LDFLAGS = (
                                        "-sectcreate",
                                        Info.plist,
                                );
                                PRODUCT_NAME = "The Cheat";
-                               PROVISIONING_PROFILE = "";
-                               SDKROOT = macosx10.3.9;
-                               "SDKROOT[arch=i386]" = macosx10.4;
-                               "SDKROOT[arch=ppc]" = macosx10.3.9;
+                               SDKROOT = macosx;
                                SECTORDER_FLAGS = "";
                                WARNING_CFLAGS = (
                                        "-Wmost",
                779E59830EB52C64000C6482 /* Default */ = {
                        isa = XCBuildConfiguration;
                        buildSettings = {
+                               CODE_SIGN_IDENTITY = "";
                                COPY_PHASE_STRIP = YES;
                                DEAD_CODE_STRIPPING = YES;
                                FRAMEWORK_SEARCH_PATHS = "";
                                GCC_AUTO_VECTORIZATION = YES;
                                GCC_DYNAMIC_NO_PIC = YES;
-                               GCC_ENABLE_OBJC_EXCEPTIONS = NO;
+                               GCC_ENABLE_OBJC_EXCEPTIONS = YES;
                                GCC_ENABLE_TRIGRAPHS = NO;
                                GCC_FAST_OBJC_DISPATCH = YES;
                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
                                HEADER_SEARCH_PATHS = "";
                                INFOPLIST_FILE = Info.plist;
-                               INSTALL_PATH = "$(HOME)/Applications";
+                               INSTALL_PATH = /Applications;
                                LIBRARY_SEARCH_PATHS = "";
+                               MACOSX_DEPLOYMENT_TARGET = 10.7;
                                OTHER_CFLAGS = "";
                                OTHER_LDFLAGS = "";
                                PRODUCT_NAME = "The Cheat";
+                               SDKROOT = macosx;
                                SECTORDER_FLAGS = "";
                                WARNING_CFLAGS = (
                                        "-Wmost",
index eefe568be3d4df9484210ecf0aeb662ce1c93639..6deef52e0d09d830ef56e3678e1576d1a3ad6506 100644 (file)
@@ -81,7 +81,7 @@
 
 - (id)initWithTarget:(id)target selector:(SEL)selector context:(id)context delegate:(id)delegate
 {
-       if ( self = [self _initWithContext:context delegate:delegate] ) {
+       if ( (self = [self _initWithContext:context delegate:delegate]) ) {
                // set initial values
                [self setTarget:target selector:selector];
        }
@@ -95,7 +95,7 @@
 
 - (id)initWithFunction:(int (*)(ThreadedTask *, unsigned))function context:(id)context delegate:(id)delegate
 {
-       if ( self = [self _initWithContext:context delegate:delegate] ) {
+       if ( (self = [self _initWithContext:context delegate:delegate]) ) {
                // set initial values
                [self setFunction:function];
        }
index 536d94f9f4af29b54c81994fea11cfdfe86ae357..4630ad02c614ceb44d34336e499a212a2c78d78e 100644 (file)
        NSScanner *scanner = [NSScanner scannerWithString:string];
        TCAddress address;
        
-#if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED
        if ( [scanner scanHexLongLong:(unsigned long long *)(&address)] ) {
-#else
-       if ( [scanner scanHexInt:(unsigned *)(&address)] ) {
-#endif
                [self setAddress:address];
                return YES;
        }
        switch ( _type ) {
                case TCDouble: return [NSString stringWithFormat:@"%.1lf", *(double *)[self value]];
                case TCFloat: return [NSString stringWithFormat:@"%.1f", *(float *)[self value]];
-               case TCString: return [NSString stringWithCString:[self value] length:[self valueSize]];
+               case TCString: return [[[NSString alloc] initWithBytes:[self value] length:[self valueSize] encoding:NSUTF8StringEncoding] autorelease];
        }
        if ( _integerSign == TCUnsigned ) {
                switch ( _type ) {
                }
                case TCString:
                {
-                       char *str = (char *)[string lossyCString];
+                       char *str = (char *)[string cStringUsingEncoding:NSUTF8StringEncoding];
                        unsigned len = strlen( str );
                        [self setValue:str size:len];
                        break;
@@ -474,21 +470,13 @@ void bigEndianValue(void *buffer, Variable *variable)
        _enabled = enabled;
 }
 
-
-#if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED
 - (NSInteger)tag
-#else
-- (int)tag
-#endif
 {
        return _tag;
 }
 
-#if MAC_OS_X_VERSION_10_5 <= MAC_OS_X_VERSION_MAX_ALLOWED
+
 - (void)setTag:(NSInteger)tag
-#else
-- (void)setTag:(int)tag
-#endif
 {
        _tag = tag;
 }
index bf76767e7011ccd0c0e89fcb1b13ad822d584eec..2c7538131d6c624579bebac647f188df5e5f5e98 100644 (file)
@@ -31,7 +31,8 @@
        TrackerScroller *scroller = [[TrackerScroller alloc] initWithFrame:[oldScroller frame]];
        
        [scroller setControlSize:[oldScroller controlSize]];    
-       [scroller setFloatValue:[oldScroller floatValue] knobProportion:[oldScroller knobProportion]];
+       [scroller setDoubleValue:[oldScroller floatValue]];
+    [scroller setKnobProportion:[oldScroller knobProportion]];
        [scroller setControlTint:[oldScroller controlTint]];
        
        // set the new scroller
diff --git a/main.m b/main.m
index a984ac26dadd4cd138b9e3e182adc88a8ac34b66..cc9de3e33d7fff367a1f8045b2817578f3146d8f 100644 (file)
--- a/main.m
+++ b/main.m
@@ -106,18 +106,7 @@ int main( int argc, char *argv[] )
        
        ChazDebugSetup();
        ChazMapLogToDebug();
-       
-#ifdef __ppc__
-       // PPC machines whose operating system is below leopard do not need authorization
-       SInt32 osxMajorVersion;
-       Gestalt(gestaltSystemVersionMinor, &osxMajorVersion);
-       if (osxMajorVersion < 5)
-       {
-               [pool release];
-               return NSApplicationMain(argc,  (const char **) argv);
-       }
-#endif
-       
+               
        if (amIWorthy())
        {
 #ifndef _DEBUG
This page took 0.079151 seconds and 4 git commands to generate.