Did some tinkering, nothing really useful done though. Removed a useless
authorKent Sutherland <ksuther@ithinksw.com>
Sat, 29 Nov 2003 11:54:29 +0000 (11:54 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Sat, 29 Nov 2003 11:54:29 +0000 (11:54 +0000)
window from Preferences.nib.

English.lproj/Preferences.nib/info.nib
English.lproj/Preferences.nib/keyedobjects.nib
MainController.h
MainController.m
NetworkController.h
NetworkController.m
NetworkObject.m
libValidate.a

index 7c74c67..13a7790 100755 (executable)
@@ -19,7 +19,6 @@
        </array>
        <key>IBOpenObjects</key>
        <array>
-               <integer>793</integer>
                <integer>6</integer>
        </array>
        <key>IBSystem Version</key>
index f24b487..9a4c80f 100755 (executable)
Binary files a/English.lproj/Preferences.nib/keyedobjects.nib and b/English.lproj/Preferences.nib/keyedobjects.nib differ
index b03349d..ae6f7fd 100755 (executable)
@@ -82,4 +82,6 @@
 - (void)setupHotKeys;
 - (void)closePreferences;
 
+- (void)showCurrentTrackInfo;
+
 @end
index 4c2ed2c..67ce65d 100755 (executable)
@@ -14,7 +14,6 @@
 - (ITMTRemote *)loadRemote;
 - (void)timerUpdate;
 - (void)setLatestSongIdentifier:(NSString *)newIdentifier;
-- (void)showCurrentTrackInfo;
 - (void)applicationLaunched:(NSNotification *)note;
 - (void)applicationTerminated:(NSNotification *)note;
 @end
index 662e519..1f1f799 100755 (executable)
@@ -24,7 +24,7 @@
     NSMutableArray *remoteServices;
     
     NSConnection *serverConnection, *clientConnection;
-    NSSocketPort *serverPort, *clientPort;
+    NSSocketPort *clientPort;
     NSString *remoteHost;
     BOOL serverOn, clientConnected, connectedToServer;
     NSData *serverPass, *clientPass;
index 24e8264..49b8321 100755 (executable)
@@ -69,17 +69,20 @@ static NetworkController *sharedController;
 {
     if (!serverOn && status) {
         NSString *name = [[NSUserDefaults standardUserDefaults] stringForKey:@"sharedPlayerName"];
+        NSPort *serverPort;
         unsigned char buffer;
         NSData *fullPass;
         //Turn on
         NS_DURING
-            serverPort = [[NSSocketPort alloc] initWithTCPPort:SERVER_PORT];
+            serverPort = [[[NSSocketPort alloc] initWithTCPPort:SERVER_PORT] autorelease];
             serverConnection = [[NSConnection alloc] initWithReceivePort:serverPort
                                                      sendPort:serverPort];
-            [serverConnection setRootObject:[[NetworkObject alloc] init]];
+            clientProxy = [[NetworkObject alloc] init];
+            [serverConnection setRootObject:[clientProxy autorelease]];
             [serverConnection registerName:@"ITMTPlayerHost"];
         NS_HANDLER
             [[serverConnection rootObject] release];
+            [serverConnection setRootObject:nil];
             [serverConnection release];
             [serverPort release];
             ITDebugLog(@"Error starting server!");
@@ -108,8 +111,8 @@ static NetworkController *sharedController;
         //Turn off
         [service stop];
         [serverConnection registerName:nil];
-        [[serverConnection rootObject] release];
         [serverConnection release];
+        [clientProxy release];
         ITDebugLog(@"Stopped server.");
         serverOn = NO;
     }
index 32bbbc8..4473970 100755 (executable)
 
 - (ITMTRemote *)remote
 {
-    if (_authenticated)
+    if (_authenticated) {
         return [[MainController sharedController] currentRemote];
-    else
+    } else {
         return nil;
+    }
 }
 
 - (NSString *)serverName
index b921fb5..40db57b 100755 (executable)
Binary files a/libValidate.a and b/libValidate.a differ