Changeset 4785
- Timestamp:
- 05/22/07 22:43:57 (1 year ago)
- Files:
-
- WiredClient/trunk/WCChat.h (modified) (1 diff)
- WiredClient/trunk/WCChat.m (modified) (2 diffs)
- WiredClient/trunk/WCPublicChat.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.h
r4481 r4785 91 91 - (id)initChatWithConnection:(WCServerConnection *)connection windowNibName:(NSString *)windowNibName name:(NSString *)name; 92 92 93 - (void)serverConnectionServerInfoDidChange:(NSNotification *)notification; 93 94 - (void)serverConnectionLoggedIn:(NSNotification *)notification; 94 95 WiredClient/trunk/WCChat.m
r4751 r4785 161 161 0x2014, 162 162 [_topicDateFormatter stringFromDate:[_topic date]]]]; 163 } else { 164 [_topicTextField setToolTip:NULL]; 165 [_topicTextField setStringValue:@""]; 166 [_topicNickTextField setStringValue:@""]; 163 167 } 164 168 } … … 772 776 - (void)connectionDidClose:(NSNotification *)notification { 773 777 [self validate]; 778 } 779 780 781 782 - (void)serverConnectionServerInfoDidChange:(NSNotification *)notification { 783 if([[self connection] isReconnecting]) { 784 [_topic release]; 785 _topic = NULL; 786 787 [self _updateTopic]; 788 } 774 789 } 775 790 WiredClient/trunk/WCPublicChat.m
r4775 r4785 339 339 - (void)serverConnectionLoggedIn:(NSNotification *)notification { 340 340 [super serverConnectionLoggedIn:notification]; 341 341 342 342 [[self connection] sendCommand:WCWhoCommand withArgument:[NSSWF:@"%u", [self chatID]]]; 343 343 … … 362 362 [item setToolTip:[[self connection] name]]; 363 363 364 if([[self connection] isReconnecting]) 364 if([[self connection] isReconnecting]) { 365 [[_toolbarItems objectForKey:@"Banner"] setImage:[NSImage imageNamed:@"Banner"]]; 366 365 367 [self printEvent:[NSSWF:NSLS(@"Re-established connection to %@", @"Disconnected chat message"), [[self connection] name]]]; 366 } 367 368 } 369 370 [super serverConnectionServerInfoDidChange:notification]; 371 } 368 372 369 373
