Changeset 977
- Timestamp:
- 03/14/04 05:40:05 (5 years ago)
- Files:
-
- WiredClient/trunk/WCAccounts.m (modified) (2 diffs)
- WiredClient/trunk/WCClient.m (modified) (2 diffs)
- WiredClient/trunk/WCConnection.h (modified) (3 diffs)
- WiredClient/trunk/WCConnection.m (modified) (4 diffs)
- WiredClient/trunk/WCConsole.m (modified) (2 diffs)
- WiredClient/trunk/WCMessages.m (modified) (2 diffs)
- WiredClient/trunk/WCNews.m (modified) (2 diffs)
- WiredClient/trunk/WCPublicChat.m (modified) (3 diffs)
- WiredClient/trunk/WCSearch.m (modified) (2 diffs)
- WiredClient/trunk/WCServerInfo.m (modified) (2 diffs)
- WiredClient/trunk/WCTransfers.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCAccounts.m
r944 r977 1 /* $Id: WCAccounts.m,v 1. 1 2004/03/08 19:23:42morris Exp $ */1 /* $Id: WCAccounts.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 131 131 132 132 - (void)connectionHasAttached:(NSNotification *)notification { 133 if([ notification object] != _connection)133 if([[notification object] objectAtIndex:0] != _connection) 134 134 return; 135 135 WiredClient/trunk/WCClient.m
r968 r977 1 /* $Id: WCClient.m,v 1. 4 2004/03/13 02:38:16morris Exp $ */1 /* $Id: WCClient.m,v 1.5 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 337 337 [[NSNotificationCenter defaultCenter] 338 338 postNotificationName:WCConnectionHasAttached 339 object: _connection];339 object:[NSArray arrayWithObjects:_connection, argument, NULL]]; 340 340 break; 341 341 WiredClient/trunk/WCConnection.h
r944 r977 1 /* $Id: WCConnection.h,v 1. 1 2004/03/08 19:23:42morris Exp $ */1 /* $Id: WCConnection.h,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 46 46 WCCache *_cache; 47 47 WCServer *_server; 48 49 unsigned int _uid; 48 50 } 49 51 … … 81 83 - (NSURL *) URL; 82 84 - (WCAccount *) account; 85 - (unsigned int) uid; 83 86 84 87 @end WiredClient/trunk/WCConnection.m
r944 r977 1 /* $Id: WCConnection.m,v 1. 1 2004/03/08 19:23:42morris Exp $ */1 /* $Id: WCConnection.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 86 86 [[NSNotificationCenter defaultCenter] 87 87 addObserver:self 88 selector:@selector(connectionShouldTerminate:)89 name:WCConnectionShouldTerminate90 object:NULL];88 selector:@selector(connectionHasAttached:) 89 name:WCConnectionHasAttached 90 object:NULL]; 91 91 92 92 [[NSNotificationCenter defaultCenter] 93 93 addObserver:self 94 selector:@selector(connectionGotServerInfo:)95 name:WCConnectionGotServerInfo96 object:NULL];97 94 selector:@selector(connectionShouldTerminate:) 95 name:WCConnectionShouldTerminate 96 object:NULL]; 97 98 98 [[NSNotificationCenter defaultCenter] 99 99 addObserver:self 100 selector:@selector(connectionGotPrivileges:) 101 name:WCConnectionGotPrivileges 102 object:NULL]; 103 100 selector:@selector(connectionGotServerInfo:) 101 name:WCConnectionGotServerInfo 102 object:NULL]; 103 104 [[NSNotificationCenter defaultCenter] 105 addObserver:self 106 selector:@selector(connectionGotPrivileges:) 107 name:WCConnectionGotPrivileges 108 object:NULL]; 109 104 110 // --- start connection 105 111 [_client connect:url]; … … 122 128 123 129 #pragma mark - 130 131 - (void)connectionHasAttached:(NSNotification *)notification { 132 NSString *uid; 133 WCConnection *connection; 134 135 // --- get objects 136 connection = [[notification object] objectAtIndex:0]; 137 uid = [[notification object] objectAtIndex:1]; 138 139 if(connection != self) 140 return; 141 142 // --- get uid 143 _uid = [uid intValue]; 144 } 145 146 124 147 125 148 - (void)connectionShouldTerminate:(NSNotification *)notification { … … 279 302 } 280 303 304 305 306 - (unsigned int)uid { 307 return _uid; 308 } 309 281 310 @end WiredClient/trunk/WCConsole.m
r944 r977 1 /* $Id: WCConsole.m,v 1. 1 2004/03/08 19:23:42morris Exp $ */1 /* $Id: WCConsole.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 83 83 84 84 - (void)connectionHasAttached:(NSNotification *)notification { 85 if([ notification object] != _connection)85 if([[notification object] objectAtIndex:0] != _connection) 86 86 return; 87 87 WiredClient/trunk/WCMessages.m
r961 r977 1 /* $Id: WCMessages.m,v 1. 3 2004/03/11 18:33:18morris Exp $ */1 /* $Id: WCMessages.m,v 1.4 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 128 128 129 129 - (void)connectionHasAttached:(NSNotification *)notification { 130 if([ notification object] != _connection)130 if([[notification object] objectAtIndex:0] != _connection) 131 131 return; 132 132 WiredClient/trunk/WCNews.m
r944 r977 1 /* $Id: WCNews.m,v 1. 1 2004/03/08 19:23:43morris Exp $ */1 /* $Id: WCNews.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 126 126 127 127 - (void)connectionHasAttached:(NSNotification *)notification { 128 if([ notification object] != _connection)128 if([[notification object] objectAtIndex:0] != _connection) 129 129 return; 130 130 WiredClient/trunk/WCPublicChat.m
r968 r977 1 /* $Id: WCPublicChat.m,v 1. 3 2004/03/13 02:38:16morris Exp $ */1 /* $Id: WCPublicChat.m,v 1.4 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 145 145 146 146 - (void)connectionHasAttached:(NSNotification *)notification { 147 if([ notification object] != _connection)147 if([[notification object] objectAtIndex:0] != _connection) 148 148 return; 149 149 … … 153 153 154 154 // --- show window 155 if([notification object] == _connection) 156 [self showWindow:self]; 155 [self showWindow:self]; 157 156 } 158 157 WiredClient/trunk/WCSearch.m
r944 r977 1 /* $Id: WCSearch.m,v 1. 1 2004/03/08 19:23:43morris Exp $ */1 /* $Id: WCSearch.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 150 150 151 151 - (void)connectionHasAttached:(NSNotification *)notification { 152 if([ notification object] != _connection)152 if([[notification object] objectAtIndex:0] != _connection) 153 153 return; 154 154 WiredClient/trunk/WCServerInfo.m
r944 r977 1 /* $Id: WCServerInfo.m,v 1. 1 2004/03/08 19:23:43morris Exp $ */1 /* $Id: WCServerInfo.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 113 113 114 114 - (void)connectionHasAttached:(NSNotification *)notification { 115 if([ notification object] != _connection)115 if([[notification object] objectAtIndex:0] != _connection) 116 116 return; 117 117 WiredClient/trunk/WCTransfers.m
r944 r977 1 /* $Id: WCTransfers.m,v 1. 1 2004/03/08 19:23:44morris Exp $ */1 /* $Id: WCTransfers.m,v 1.2 2004/03/14 04:40:05 morris Exp $ */ 2 2 3 3 /* … … 160 160 161 161 - (void)connectionHasAttached:(NSNotification *)notification { 162 if([ notification object] != _connection)162 if([[notification object] objectAtIndex:0] != _connection) 163 163 return; 164 164
