Changeset 3908
- Timestamp:
- 03/17/06 08:29:27 (3 years ago)
- Files:
-
- WiredClient/trunk/WCPreferences.m (modified) (4 diffs)
- WiredClient/trunk/WCServerConnection.m (modified) (2 diffs)
- WiredClient/trunk/WCServerInfo.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCPreferences.m
r3907 r3908 563 563 [WCSettings setBookmark:bookmark atIndex:row]; 564 564 565 [[NSNotificationCenter defaultCenter] postNotificationName:WCBookmarksDidChange object:self ];565 [[NSNotificationCenter defaultCenter] postNotificationName:WCBookmarksDidChange object:self userInfo:bookmark]; 566 566 } 567 567 … … 673 673 [WCSettings setTrackerBookmark:trackerBookmark atIndex:row]; 674 674 675 [[NSNotificationCenter defaultCenter] postNotificationName:WCTrackerBookmarksDidChange object:self ];675 [[NSNotificationCenter defaultCenter] postNotificationName:WCTrackerBookmarksDidChange object:self userInfo:trackerBookmark]; 676 676 } 677 677 … … 873 873 [dictionary release]; 874 874 875 [[NSNotificationCenter defaultCenter] postNotificationName:WCBookmarksDidChange object:self ];875 [[NSNotificationCenter defaultCenter] postNotificationName:WCBookmarksDidChange object:self userInfo:dictionary]; 876 876 877 877 [_bookmarksTableView reloadData]; … … 891 891 [dictionary release]; 892 892 893 [[NSNotificationCenter defaultCenter] postNotificationName:WCTrackerBookmarksDidChange object:self ];893 [[NSNotificationCenter defaultCenter] postNotificationName:WCTrackerBookmarksDidChange object:self userInfo:dictionary]; 894 894 895 895 [_trackerBookmarksTableView reloadData]; WiredClient/trunk/WCServerConnection.m
r3673 r3908 87 87 name:WCIconDidChange]; 88 88 89 [[NSNotificationCenter defaultCenter] 90 addObserver:self 91 selector:@selector(bookmarksDidChange:) 92 name:WCBookmarksDidChange]; 93 89 94 [self addObserver:self 90 95 selector:@selector(connectionDidConnect:) … … 313 318 withArgument:@"0" 314 319 withArgument:[WCSettings objectForKey:WCCustomIcon]]; 320 } 321 } 322 323 324 325 - (void)bookmarksDidChange:(NSNotification *)notification { 326 NSDictionary *bookmark; 327 NSString *nick, *status; 328 329 bookmark = [notification userInfo]; 330 331 if([[bookmark objectForKey:WCBookmarksIdentifier] isEqualToString:[_bookmark objectForKey:WCBookmarksIdentifier]]) { 332 nick = [bookmark objectForKey:WCBookmarksNick]; 333 334 if([nick length] > 0) 335 [_link sendCommand:WCNickCommand withArgument:nick]; 336 337 status = [bookmark objectForKey:WCBookmarksStatus]; 338 339 if([status length] > 0) 340 [_link sendCommand:WCStatusCommand withArgument:status]; 315 341 } 316 342 } WiredClient/trunk/WCServerInfo.h
r3570 r3908 51 51 IBOutlet NSTextField *_certificateTitleTextField; 52 52 IBOutlet NSTextField *_certificateTextField; 53 54 NSTimer *_timer; 53 55 } 54 56
