Changeset 5621
- Timestamp:
- 07/31/08 17:32:03 (4 months ago)
- Files:
-
- WiredClient/trunk/WCApplicationController.m (modified) (1 diff)
- WiredClient/trunk/WCConnectionController.m (modified) (2 diffs)
- WiredClient/trunk/WCConversation.m (modified) (2 diffs)
- WiredClient/trunk/WCDock.m (modified) (1 diff)
- WiredClient/trunk/WCFiles.m (modified) (1 diff)
- WiredClient/trunk/WCMessages.m (modified) (2 diffs)
- WiredClient/trunk/WCPreferences.m (modified) (3 diffs)
- WiredClient/trunk/WCPrivateChat.m (modified) (1 diff)
- WiredClient/trunk/WCPublicChat.m (modified) (1 diff)
- WiredClient/trunk/WCTrackerConnection.m (modified) (1 diff)
- WiredClient/trunk/WCTransfers.m (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCApplicationController.m
r5542 r5621 364 364 365 365 366 367 - (void)dealloc { 368 [[NSNotificationCenter defaultCenter] removeObserver:self]; 369 370 [_clientVersion release]; 371 [_smileys release]; 372 [_sortedSmileys release]; 373 374 [super dealloc]; 375 } 376 377 378 379 #pragma mark - 366 380 367 381 - (void)awakeFromNib { WiredClient/trunk/WCConnectionController.m
r5498 r5621 487 487 - (IBAction)addBookmark:(id)sender { 488 488 NSDictionary *bookmark; 489 NSString * host, *login, *password;489 NSString *login, *password; 490 490 WIURL *url; 491 491 WCServerConnection *connection; … … 495 495 496 496 if(url) { 497 host = [url host];498 497 login = [url user] ? [url user] : @""; 499 498 password = [url password] ? [url password] : @""; WiredClient/trunk/WCConversation.m
r4799 r5621 43 43 44 44 _type = type; 45 _key = [[ self class] keyForType:type user:user connection:connection];45 _key = [[[self class] keyForType:type user:user connection:connection] retain]; 46 46 _userNick = [[user nick] retain]; 47 47 … … 70 70 + (id)broadcastConversationWithUser:(WCUser *)user connection:(WCServerConnection *)connection { 71 71 return [[[self alloc] _initWithType:WCMessageBroadcast user:user connection:connection] autorelease]; 72 } 73 74 75 76 #pragma mark - 77 78 - (void)dealloc { 79 [_key release]; 80 [_userNick release]; 81 82 [super dealloc]; 72 83 } 73 84 WiredClient/trunk/WCDock.m
r5601 r5621 216 216 217 217 218 - (void)dealloc { 219 [[NSNotificationCenter defaultCenter] removeObserver:self]; 220 221 [_shownConnections release]; 222 [_connectedImage release]; 223 [_disconnectedImage release]; 224 [_bookmarkImage release]; 225 [_postsImage release]; 226 [_messagesImage release]; 227 228 [super dealloc]; 229 } 230 231 232 233 218 234 #pragma mark - 219 235 WiredClient/trunk/WCFiles.m
r5499 r5621 859 859 if(returnCode == NSOKButton) { 860 860 files = [openPanel filenames]; 861 enumerator = [files objectEnumerator];862 861 enumerator = [[files sortedArrayUsingSelector:@selector(compare:)] objectEnumerator]; 863 862 WiredClient/trunk/WCMessages.m
r5610 r5621 809 809 - (void)showPreviousUnreadMessage { 810 810 NSArray *messages; 811 WCMessage *message , *selectedMessage;811 WCMessage *message; 812 812 NSUInteger i, index, count; 813 813 … … 818 818 819 819 messages = [self _messagesSortedForView]; 820 selectedMessage = [self _selectedMessage];821 820 822 821 if(message == [self _selectedMessage]) { WiredClient/trunk/WCPreferences.m
r5601 r5621 309 309 310 310 [[_eventsPopUpButton menu] addItem:item]; 311 [item release]; 311 312 } 312 313 } … … 816 817 817 818 819 - (void)dealloc { 820 [[NSNotificationCenter defaultCenter] removeObserver:self]; 821 822 [_toolbarItems release]; 823 824 [super dealloc]; 825 } 826 827 828 818 829 #pragma mark - 819 830 … … 938 949 [dictionary setObject:[_bookmarksNameTextField stringValue] forKey:WCBookmarksName]; 939 950 [WCSettings setBookmark:dictionary atIndex:row]; 951 [dictionary release]; 940 952 941 953 [[NSNotificationCenter defaultCenter] postNotificationName:WCBookmarksDidChange object:self]; WiredClient/trunk/WCPrivateChat.m
r5601 r5621 95 95 #pragma mark - 96 96 97 - (void)dealloc { 98 [_user release]; 99 100 [super dealloc]; 101 } 102 103 104 105 #pragma mark - 106 97 107 - (void)windowDidLoad { 98 108 [self setShouldCascadeWindows:YES]; WiredClient/trunk/WCPublicChat.m
r5542 r5621 224 224 #pragma mark - 225 225 226 - (void)dealloc { 227 [_toolbarItems release]; 228 229 [super dealloc]; 230 } 231 232 233 234 #pragma mark - 235 226 236 - (void)windowDidLoad { 227 237 [[self window] setToolbar:[self _toolbar]]; WiredClient/trunk/WCTrackerConnection.m
r4980 r5621 138 138 - (void)trackerConnectionReceivedTrackerInfo:(NSNotification *)notification { 139 139 NSArray *fields; 140 NSString * version, *protocol, *name, *description, *started;140 NSString *protocol; 141 141 142 142 fields = [[notification userInfo] objectForKey:WCArgumentsKey]; 143 version = [fields safeObjectAtIndex:0];144 143 protocol = [fields safeObjectAtIndex:1]; 145 name = [fields safeObjectAtIndex:2];146 description = [fields safeObjectAtIndex:3];147 started = [fields safeObjectAtIndex:4];148 144 149 145 [_tracker setProtocol:[protocol doubleValue]]; WiredClient/trunk/WCTransfers.m
r5601 r5621 861 861 [transfer setSecure:([socket cipherBits] > 0)]; 862 862 863 speedTime = statsTime = time =_WCTransfersTimeInterval();863 speedTime = statsTime = _WCTransfersTimeInterval(); 864 864 speedBytes = statsBytes = maxSpeed = 0; 865 865 … … 1028 1028 [transfer setSecure:([socket cipherBits] > 0)]; 1029 1029 1030 speedTime = statsTime = time =_WCTransfersTimeInterval();1030 speedTime = statsTime = _WCTransfersTimeInterval(); 1031 1031 speedBytes = statsBytes = maxSpeed = 0; 1032 1032 … … 1382 1382 1383 1383 - (void)downloadsCompletedFiles:(NSNotification *)notification { 1384 NSString *path , *free;1384 NSString *path; 1385 1385 NSArray *fields; 1386 1386 WCTransfer *transfer; … … 1388 1388 fields = [[notification userInfo] objectForKey:WCArgumentsKey]; 1389 1389 path = [fields safeObjectAtIndex:0]; 1390 free = [fields safeObjectAtIndex:1];1391 1392 1390 transfer = [self _unfinishedTransferWithPath:path]; 1393 1391 … … 1442 1440 1443 1441 - (void)uploadsCompletedFiles:(NSNotification *)notification { 1444 NSString *path , *free;1442 NSString *path; 1445 1443 NSArray *fields; 1446 1444 WCTransfer *transfer; … … 1448 1446 fields = [[notification userInfo] objectForKey:WCArgumentsKey]; 1449 1447 path = [fields safeObjectAtIndex:0]; 1450 free = [fields safeObjectAtIndex:1];1451 1448 transfer = [self _unfinishedTransferWithPath:path]; 1452 1449
