Changeset 1435
- Timestamp:
- 08/06/04 21:54:21 (4 years ago)
- Files:
-
- WiredClient/trunk/WCAccountEditor.m (modified) (3 diffs)
- WiredClient/trunk/WCAccounts.m (modified) (3 diffs)
- WiredClient/trunk/WCConsole.m (modified) (3 diffs)
- WiredClient/trunk/WCFiles.m (modified) (4 diffs)
- WiredClient/trunk/WCMessages.m (modified) (4 diffs)
- WiredClient/trunk/WCNews.m (modified) (3 diffs)
- WiredClient/trunk/WCPrivateChat.m (modified) (4 diffs)
- WiredClient/trunk/WCPublicChat.m (modified) (3 diffs)
- WiredClient/trunk/WCSearch.m (modified) (3 diffs)
- WiredClient/trunk/WCServerInfo.m (modified) (4 diffs)
- WiredClient/trunk/WCTransfers.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCAccountEditor.m
r1423 r1435 1 /* $Id: WCAccountEditor.m,v 1.1 4 2004/08/05 20:21:14morris Exp $ */1 /* $Id: WCAccountEditor.m,v 1.15 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 57 57 [[NSNotificationCenter defaultCenter] 58 58 addObserver:self 59 selector:@selector(connectionShouldTerminate:)60 name:WCConnectionShouldTerminate61 object:NULL];62 59 selector:@selector(connectionServerInfoDidChange:) 60 name:WCConnectionServerInfoDidChange 61 object:NULL]; 62 63 63 [[NSNotificationCenter defaultCenter] 64 64 addObserver:self 65 selector:@selector(accountEditorShouldShowUser:)66 name:WCAccountEditorShouldShowUser67 object:NULL];68 65 selector:@selector(connectionShouldTerminate:) 66 name:WCConnectionShouldTerminate 67 object:NULL]; 68 69 69 [[NSNotificationCenter defaultCenter] 70 70 addObserver:self 71 selector:@selector(accountEditorShouldShowGroup:)72 name:WCAccountEditorShouldShowGroup73 object:NULL];74 71 selector:@selector(accountEditorShouldShowUser:) 72 name:WCAccountEditorShouldShowUser 73 object:NULL]; 74 75 75 [[NSNotificationCenter defaultCenter] 76 76 addObserver:self 77 selector:@selector(accountsShouldAddGroup:)78 name:WCAccountsShouldAddGroup79 object:NULL];80 77 selector:@selector(accountEditorShouldShowGroup:) 78 name:WCAccountEditorShouldShowGroup 79 object:NULL]; 80 81 81 [[NSNotificationCenter defaultCenter] 82 82 addObserver:self 83 selector:@selector(accountsShouldCompleteGroups:) 84 name:WCAccountsShouldCompleteGroups 85 object:NULL]; 83 selector:@selector(accountsShouldAddGroup:) 84 name:WCAccountsShouldAddGroup 85 object:NULL]; 86 87 [[NSNotificationCenter defaultCenter] 88 addObserver:self 89 selector:@selector(accountsShouldCompleteGroups:) 90 name:WCAccountsShouldCompleteGroups 91 object:NULL]; 86 92 87 93 // --- send groups command … … 190 196 [self release]; 191 197 } 198 199 200 201 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 202 if([notification object] != _connection) 203 return; 204 205 // --- window title 206 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 207 [_connection name], 0x2014, NSLocalizedString(@"Account Editor", @"Account editor window title")]]; 208 } 209 192 210 193 211 WiredClient/trunk/WCAccounts.m
r1398 r1435 1 /* $Id: WCAccounts.m,v 1.1 6 2004/07/30 12:43:40morris Exp $ */1 /* $Id: WCAccounts.m,v 1.17 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 66 66 [[NSNotificationCenter defaultCenter] 67 67 addObserver:self 68 selector:@selector(connectionServerInfoDidChange:) 69 name:WCConnectionServerInfoDidChange 70 object:NULL]; 71 72 [[NSNotificationCenter defaultCenter] 73 addObserver:self 68 74 selector:@selector(connectionShouldTerminate:) 69 75 name:WCConnectionShouldTerminate … … 149 155 return; 150 156 157 // --- show window 158 if([WCSettings boolForKey:WCShowAccounts]) 159 [self showWindow:self]; 160 } 161 162 163 164 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 165 if([notification object] != _connection) 166 return; 167 151 168 // --- window title 152 169 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 153 170 [_connection name], 0x2014, NSLocalizedString(@"Accounts", @"Accounts window title")]]; 154 155 // --- show window156 if([WCSettings boolForKey:WCShowAccounts])157 [self showWindow:self];158 171 } 159 172 WiredClient/trunk/WCConsole.m
r1298 r1435 1 /* $Id: WCConsole.m,v 1. 6 2004/05/22 02:18:09morris Exp $ */1 /* $Id: WCConsole.m,v 1.7 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 46 46 [[NSNotificationCenter defaultCenter] 47 47 addObserver:self 48 selector:@selector(connectionHasAttached:)49 name:WCConnectionHasAttached50 object:NULL];51 48 selector:@selector(connectionHasAttached:) 49 name:WCConnectionHasAttached 50 object:NULL]; 51 52 52 [[NSNotificationCenter defaultCenter] 53 53 addObserver:self 54 selector:@selector(connectionShouldTerminate:) 55 name:WCConnectionShouldTerminate 56 object:NULL]; 57 54 selector:@selector(connectionServerInfoDidChange:) 55 name:WCConnectionServerInfoDidChange 56 object:NULL]; 57 58 [[NSNotificationCenter defaultCenter] 59 addObserver:self 60 selector:@selector(connectionShouldTerminate:) 61 name:WCConnectionShouldTerminate 62 object:NULL]; 63 58 64 return self; 59 65 } … … 85 91 return; 86 92 87 // --- set title when host is resolved88 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@",89 [_connection name], 0x2014, NSLocalizedString(@"Console", @"Console window title")]];90 91 93 // --- show window 92 94 if([WCSettings boolForKey:WCShowConsole]) 93 95 [self showWindow:self]; 96 } 97 98 99 100 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 101 if([notification object] != _connection) 102 return; 103 104 // --- window title 105 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 106 [_connection name], 0x2014, NSLocalizedString(@"Console", @"Console window title")]]; 94 107 } 95 108 WiredClient/trunk/WCFiles.m
r1418 r1435 1 /* $Id: WCFiles.m,v 1.4 1 2004/08/04 18:52:57morris Exp $ */1 /* $Id: WCFiles.m,v 1.42 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 79 79 [[NSNotificationCenter defaultCenter] 80 80 addObserver:self 81 selector:@selector(connectionShouldTerminate:)82 name:WCConnectionShouldTerminate83 object:NULL];84 81 selector:@selector(connectionServerInfoDidChange:) 82 name:WCConnectionServerInfoDidChange 83 object:NULL]; 84 85 85 [[NSNotificationCenter defaultCenter] 86 86 addObserver:self 87 selector:@selector(connectionPrivilegesDidChange:) 88 name:WCConnectionPrivilegesDidChange 89 object:NULL]; 87 selector:@selector(connectionShouldTerminate:) 88 name:WCConnectionShouldTerminate 89 object:NULL]; 90 91 [[NSNotificationCenter defaultCenter] 92 addObserver:self 93 selector:@selector(connectionPrivilegesDidChange:) 94 name:WCConnectionPrivilegesDidChange 95 object:NULL]; 90 96 91 97 // --- add path to the history … … 154 160 // --- window title 155 161 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 156 [_path path], 157 0x2014, 158 [_connection name]]]; 162 [_path path], 0x2014, [_connection name]]]; 159 163 160 164 // --- window position … … 185 189 186 190 [self release]; 191 } 192 193 194 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 195 if([notification object] != _connection) 196 return; 197 198 // --- window title 199 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 200 [_path path], 0x2014, [_connection name]]]; 187 201 } 188 202 WiredClient/trunk/WCMessages.m
r1418 r1435 1 /* $Id: WCMessages.m,v 1.2 3 2004/08/04 18:52:57morris Exp $ */1 /* $Id: WCMessages.m,v 1.24 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 61 61 [[NSNotificationCenter defaultCenter] 62 62 addObserver:self 63 selector:@selector(connectionHasAttached:)64 name:WCConnectionHasAttached65 object:NULL];66 63 selector:@selector(connectionHasAttached:) 64 name:WCConnectionHasAttached 65 object:NULL]; 66 67 67 [[NSNotificationCenter defaultCenter] 68 68 addObserver:self 69 selector:@selector(connectionShouldTerminate:)70 name:WCConnectionShouldTerminate71 object:NULL];72 69 selector:@selector(connectionServerInfoDidChange:) 70 name:WCConnectionServerInfoDidChange 71 object:NULL]; 72 73 73 [[NSNotificationCenter defaultCenter] 74 74 addObserver:self 75 selector:@selector(preferencesDidChange:) 76 name:WCPreferencesDidChange 75 selector:@selector(connectionShouldTerminate:) 76 name:WCConnectionShouldTerminate 77 object:NULL]; 78 79 [[NSNotificationCenter defaultCenter] 80 addObserver:self 81 selector:@selector(preferencesDidChange:) 82 name:WCPreferencesDidChange 77 83 object:NULL]; 78 84 … … 82 88 name:WCMessagesShouldShowMessage 83 89 object:NULL]; 84 90 85 91 [[NSNotificationCenter defaultCenter] 86 92 addObserver:self 87 selector:@selector(messagesShouldShowBroadcast:)88 name:WCMessagesShouldShowBroadcast89 object:NULL];90 93 selector:@selector(messagesShouldShowBroadcast:) 94 name:WCMessagesShouldShowBroadcast 95 object:NULL]; 96 91 97 return self; 92 98 } … … 139 145 return; 140 146 141 // --- set titles when host is resolved142 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@",143 [_connection name], 0x2014, NSLocalizedString(@"Messages", @"Messages window title")]];144 145 147 // --- show window 146 148 if([WCSettings boolForKey:WCShowMessages]) 147 149 [self showWindow:self]; 150 } 151 152 153 154 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 155 if([notification object] != _connection) 156 return; 157 158 // --- window title 159 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 160 [_connection name], 0x2014, NSLocalizedString(@"Messages", @"Messages window title")]]; 148 161 } 149 162 WiredClient/trunk/WCNews.m
r1358 r1435 1 /* $Id: WCNews.m,v 1.1 7 2004/06/08 20:53:42morris Exp $ */1 /* $Id: WCNews.m,v 1.18 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 55 55 [[NSNotificationCenter defaultCenter] 56 56 addObserver:self 57 selector:@selector(connectionHasAttached:) 58 name:WCConnectionHasAttached 59 object:NULL]; 60 61 [[NSNotificationCenter defaultCenter] 62 addObserver:self 63 selector:@selector(connectionShouldTerminate:) 64 name:WCConnectionShouldTerminate 65 object:NULL]; 66 67 [[NSNotificationCenter defaultCenter] 68 addObserver:self 69 selector:@selector(connectionPrivilegesDidChange:) 70 name:WCConnectionPrivilegesDidChange 71 object:NULL]; 72 73 [[NSNotificationCenter defaultCenter] 74 addObserver:self 75 selector:@selector(newsShouldAddNews:) 76 name:WCNewsShouldAddNews 77 object:NULL]; 78 79 [[NSNotificationCenter defaultCenter] 80 addObserver:self 81 selector:@selector(newsShouldCompleteNews:) 82 name:WCNewsShouldCompleteNews 83 object:NULL]; 84 85 [[NSNotificationCenter defaultCenter] 86 addObserver:self 87 selector:@selector(newsShouldAddNewNews:) 88 name:WCNewsShouldAddNewNews 89 object:NULL]; 90 57 selector:@selector(connectionHasAttached:) 58 name:WCConnectionHasAttached 59 object:NULL]; 60 61 [[NSNotificationCenter defaultCenter] 62 addObserver:self 63 selector:@selector(connectionServerInfoDidChange:) 64 name:WCConnectionServerInfoDidChange 65 object:NULL]; 66 67 [[NSNotificationCenter defaultCenter] 68 addObserver:self 69 selector:@selector(connectionShouldTerminate:) 70 name:WCConnectionShouldTerminate 71 object:NULL]; 72 73 [[NSNotificationCenter defaultCenter] 74 addObserver:self 75 selector:@selector(connectionPrivilegesDidChange:) 76 name:WCConnectionPrivilegesDidChange 77 object:NULL]; 78 79 [[NSNotificationCenter defaultCenter] 80 addObserver:self 81 selector:@selector(newsShouldAddNews:) 82 name:WCNewsShouldAddNews 83 object:NULL]; 84 85 [[NSNotificationCenter defaultCenter] 86 addObserver:self 87 selector:@selector(newsShouldCompleteNews:) 88 name:WCNewsShouldCompleteNews 89 object:NULL]; 90 91 [[NSNotificationCenter defaultCenter] 92 addObserver:self 93 selector:@selector(newsShouldAddNewNews:) 94 name:WCNewsShouldAddNewNews 95 object:NULL]; 96 91 97 return self; 92 98 } … … 123 129 return; 124 130 125 // --- set titles when host is resolved126 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@",127 [_connection name], 0x2014, NSLocalizedString(@"News", @"News window title")]];128 129 131 // --- show window 130 132 if([WCSettings boolForKey:WCShowNews]) 131 133 [self showWindow:self]; 134 } 135 136 137 138 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 139 if([notification object] != _connection) 140 return; 141 142 // --- window title 143 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 144 [_connection name], 0x2014, NSLocalizedString(@"News", @"News window title")]]; 132 145 } 133 146 WiredClient/trunk/WCPrivateChat.m
r1408 r1435 1 /* $Id: WCPrivateChat.m,v 1.2 1 2004/08/02 17:15:03morris Exp $ */1 /* $Id: WCPrivateChat.m,v 1.22 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 55 55 [[NSNotificationCenter defaultCenter] 56 56 addObserver:self 57 selector:@selector(connectionShouldTerminate:)58 name:WCConnectionShouldTerminate59 object:NULL];60 57 selector:@selector(connectionServerInfoDidChange:) 58 name:WCConnectionServerInfoDidChange 59 object:NULL]; 60 61 61 [[NSNotificationCenter defaultCenter] 62 62 addObserver:self 63 selector:@selector(privateChatShouldShowChat:)64 name:WCPrivateChatShouldShowChat65 object:NULL];66 63 selector:@selector(connectionShouldTerminate:) 64 name:WCConnectionShouldTerminate 65 object:NULL]; 66 67 67 [[NSNotificationCenter defaultCenter] 68 68 addObserver:self 69 selector:@selector(privateChatUserDeclinedInvite:) 70 name:WCPrivateChatUserDeclinedInvite 71 object:NULL]; 69 selector:@selector(privateChatShouldShowChat:) 70 name:WCPrivateChatShouldShowChat 71 object:NULL]; 72 73 [[NSNotificationCenter defaultCenter] 74 addObserver:self 75 selector:@selector(privateChatUserDeclinedInvite:) 76 name:WCPrivateChatUserDeclinedInvite 77 object:NULL]; 72 78 73 79 return self; … … 100 106 // --- window title 101 107 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 102 [_connection name], 0x2014, NSLocalizedString(@"Private Chat", @" Private chat window title")]];108 [_connection name], 0x2014, NSLocalizedString(@"Private Chat", @"Chat window title")]]; 103 109 104 110 // --- pass it down to WCChat … … 119 125 120 126 [self release]; 127 } 128 129 130 131 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 132 if([notification object] != _connection) 133 return; 134 135 // --- window title 136 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 137 [_connection name], 0x2014, NSLocalizedString(@"Private Chat", @"Chat window title")]]; 121 138 } 122 139 WiredClient/trunk/WCPublicChat.m
r1414 r1435 1 /* $Id: WCPublicChat.m,v 1.3 6 2004/08/03 19:28:53morris Exp $ */1 /* $Id: WCPublicChat.m,v 1.37 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 60 60 [[NSNotificationCenter defaultCenter] 61 61 addObserver:self 62 selector:@selector(connectionHasAttached:)63 name:WCConnectionHasAttached64 object:NULL];65 62 selector:@selector(connectionHasAttached:) 63 name:WCConnectionHasAttached 64 object:NULL]; 65 66 66 [[NSNotificationCenter defaultCenter] 67 67 addObserver:self 68 selector:@selector(connectionHasClosed:) 69 name:WCConnectionHasClosed 68 selector:@selector(connectionServerInfoDidChange:) 69 name:WCConnectionServerInfoDidChange 70 object:NULL]; 71 72 [[NSNotificationCenter defaultCenter] 73 addObserver:self 74 selector:@selector(connectionHasClosed:) 75 name:WCConnectionHasClosed 70 76 object:NULL]; 71 77 … … 150 156 [[NSSound soundNamed:[WCSettings objectForKey:WCConnectedEventSound]] play]; 151 157 152 // --- set titles when host is resolved 158 // --- show window 159 [self showWindow:self]; 160 } 161 162 163 164 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 165 if([notification object] != _connection) 166 return; 167 168 // --- window title 153 169 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 154 170 [_connection name], 0x2014, NSLocalizedString(@"Chat", @"Chat window title")]]; 155 156 // --- show window 157 [self showWindow:self]; 158 } 159 171 } 172 160 173 161 174 WiredClient/trunk/WCSearch.m
r1418 r1435 1 /* $Id: WCSearch.m,v 1. 29 2004/08/04 18:52:57morris Exp $ */1 /* $Id: WCSearch.m,v 1.30 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 81 81 [[NSNotificationCenter defaultCenter] 82 82 addObserver:self 83 selector:@selector(connectionHasAttached:)84 name:WCConnectionHasAttached85 object:NULL];86 83 selector:@selector(connectionServerInfoDidChange:) 84 name:WCConnectionServerInfoDidChange 85 object:NULL]; 86 87 87 [[NSNotificationCenter defaultCenter] 88 88 addObserver:self 89 selector:@selector(connectionShouldTerminate:)90 name:WCConnectionShouldTerminate91 object:NULL];92 89 selector:@selector(connectionShouldTerminate:) 90 name:WCConnectionShouldTerminate 91 object:NULL]; 92 93 93 [[NSNotificationCenter defaultCenter] 94 94 addObserver:self 95 selector:@selector(preferencesDidChange:)96 name:WCPreferencesDidChange97 object:NULL];95 selector:@selector(preferencesDidChange:) 96 name:WCPreferencesDidChange 97 object:NULL]; 98 98 99 99 return self; … … 164 164 165 165 166 - (void)connection HasAttached:(NSNotification *)notification {167 if([ [notification object] objectAtIndex:0] != _connection)168 return; 169 166 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 167 if([notification object] != _connection) 168 return; 169 170 170 // --- window title 171 171 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", WiredClient/trunk/WCServerInfo.m
r1432 r1435 1 /* $Id: WCServerInfo.m,v 1.2 0 2004/08/06 19:19:12morris Exp $ */1 /* $Id: WCServerInfo.m,v 1.21 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 52 52 [[NSNotificationCenter defaultCenter] 53 53 addObserver:self 54 selector:@selector(connectionHasAttached:)55 name:WCConnectionHasAttached56 object:NULL];57 58 [[NSNotificationCenter defaultCenter]59 addObserver:self60 54 selector:@selector(connectionShouldTerminate:) 61 55 name:WCConnectionShouldTerminate … … 124 118 125 119 126 - (void)connectionHasAttached:(NSNotification *)notification { 127 if([[notification object] objectAtIndex:0] != _connection) 120 - (void)connectionShouldTerminate:(NSNotification *)notification { 121 if([notification object] != _connection) 122 return; 123 124 [self close]; 125 [self release]; 126 } 127 128 129 130 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 131 WCServer *server; 132 NSRect rect; 133 134 if([notification object] != _connection) 128 135 return; 129 136 … … 131 138 [[self window] setTitle:[NSString stringWithFormat:@"%@ %@", 132 139 [_connection name], NSLocalizedString(@"Info", @"Server info window title")]]; 133 } 134 135 136 137 - (void)connectionShouldTerminate:(NSNotification *)notification { 138 if([notification object] != _connection) 139 return; 140 141 [self close]; 142 [self release]; 143 } 144 145 146 147 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 148 WCServer *server; 149 NSRect rect; 150 151 if([notification object] != _connection) 152 return; 153 140 154 141 // --- get server 155 142 server = [_connection server]; WiredClient/trunk/WCTransfers.m
r1426 r1435 1 /* $Id: WCTransfers.m,v 1.4 6 2004/08/06 19:16:48morris Exp $ */1 /* $Id: WCTransfers.m,v 1.47 2004/08/06 19:54:21 morris Exp $ */ 2 2 3 3 /* … … 76 76 [[NSNotificationCenter defaultCenter] 77 77 addObserver:self 78 selector:@selector(connectionHasAttached:)79 name:WCConnectionHasAttached80 object:NULL];81 78 selector:@selector(connectionHasAttached:) 79 name:WCConnectionHasAttached 80 object:NULL]; 81 82 82 [[NSNotificationCenter defaultCenter] 83 83 addObserver:self 84 selector:@selector(connectionShouldTerminate:)85 name:WCConnectionShouldTerminate86 object:NULL];87 84 selector:@selector(connectionServerInfoDidChange:) 85 name:WCConnectionServerInfoDidChange 86 object:NULL]; 87 88 88 [[NSNotificationCenter defaultCenter] 89 89 addObserver:self 90 selector:@selector(preferencesDidChange:)91 name:WCPreferencesDidChange92 object:NULL];93 90 selector:@selector(connectionShouldTerminate:) 91 name:WCConnectionShouldTerminate 92 object:NULL]; 93 94 94 [[NSNotificationCenter defaultCenter] 95 95 addObserver:self 96 selector:@selector(transfersShouldStartTransfer:)97 name:WCTransfersShouldStartTransfer98 object:NULL];99 96 selector:@selector(preferencesDidChange:) 97 name:WCPreferencesDidChange 98 object:NULL]; 99 100 100 [[NSNotificationCenter defaultCenter] 101 101 addObserver:self 102 selector:@selector(transfersShouldUpdateQueue:)103 name:WCTransfersShouldUpdateQueue104 object:NULL];105 102 selector:@selector(transfersShouldStartTransfer:) 103 name:WCTransfersShouldStartTransfer 104 object:NULL]; 105 106 106 [[NSNotificationCenter defaultCenter] 107 107 addObserver:self 108 selector:@selector(fileInfoShouldShowInfo:) 109 name:WCFileInfoShouldShowInfo 110 object:NULL]; 111 108 selector:@selector(transfersShouldUpdateQueue:) 109 name:WCTransfersShouldUpdateQueue 110 object:NULL]; 111 112 [[NSNotificationCenter defaultCenter] 113 addObserver:self 114 selector:@selector(fileInfoShouldShowInfo:) 115 name:WCFileInfoShouldShowInfo 116 object:NULL]; 117 112 118 // --- update table view 113 119 _timer = [NSTimer scheduledTimerWithTimeInterval:0.33 … … 182 188 return; 183 189 184 // --- set titles when host is resolved185 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@",186 [_connection name], 0x2014, NSLocalizedString(@"Transfers", @"Transfers window title")]];187 188 190 // --- show window 189 191 if([WCSettings boolForKey:WCShowTransfers]) 190 192 [self showWindow:self]; 193 } 194 195 196 197 - (void)connectionServerInfoDidChange:(NSNotification *)notification { 198 if([notification object] != _connection) 199 return; 200 201 // --- window title 202 [[self window] setTitle:[NSString stringWithFormat:@"%@ %C %@", 203 [_connection name], 0x2014, NSLocalizedString(@"Transfers", @"Transfers window title")]]; 191 204 } 192 205
