Skip to content

Commit

Permalink
Did some tinkering, nothing really useful done though. Removed a useless
Browse files Browse the repository at this point in the history
window from Preferences.nib.
  • Loading branch information
Kent Sutherland committed Nov 29, 2003
1 parent c9a2187 commit 2404965
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
1 change: 0 additions & 1 deletion English.lproj/Preferences.nib/info.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified English.lproj/Preferences.nib/keyedobjects.nib
Binary file not shown.
2 changes: 2 additions & 0 deletions MainController.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@
- (void)setupHotKeys;
- (void)closePreferences;

- (void)showCurrentTrackInfo;

@end
1 change: 0 additions & 1 deletion MainController.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ @interface MainController(Private)
- (ITMTRemote *)loadRemote;
- (void)timerUpdate;
- (void)setLatestSongIdentifier:(NSString *)newIdentifier;
- (void)showCurrentTrackInfo;
- (void)applicationLaunched:(NSNotification *)note;
- (void)applicationTerminated:(NSNotification *)note;
@end
Expand Down
2 changes: 1 addition & 1 deletion NetworkController.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
NSMutableArray *remoteServices;

NSConnection *serverConnection, *clientConnection;
NSSocketPort *serverPort, *clientPort;
NSSocketPort *clientPort;
NSString *remoteHost;
BOOL serverOn, clientConnected, connectedToServer;
NSData *serverPass, *clientPass;
Expand Down
9 changes: 6 additions & 3 deletions NetworkController.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,20 @@ - (void)setServerStatus:(BOOL)status
{
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!");
Expand Down Expand Up @@ -108,8 +111,8 @@ - (void)setServerStatus:(BOOL)status
//Turn off
[service stop];
[serverConnection registerName:nil];
[[serverConnection rootObject] release];
[serverConnection release];
[clientProxy release];
ITDebugLog(@"Stopped server.");
serverOn = NO;
}
Expand Down
5 changes: 3 additions & 2 deletions NetworkObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ - (id)init

- (ITMTRemote *)remote
{
if (_authenticated)
if (_authenticated) {
return [[MainController sharedController] currentRemote];
else
} else {
return nil;
}
}

- (NSString *)serverName
Expand Down
Binary file modified libValidate.a
Binary file not shown.

0 comments on commit 2404965

Please sign in to comment.