Changeset 4130

Show
Ignore:
Timestamp:
05/18/06 21:38:08 (2 years ago)
Author:
morris
Message:

Update news window on preferences change

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCNews.m

    r4121 r4130  
    2929#import "WCAccount.h" 
    3030#import "WCNews.h" 
     31#import "WCPreferences.h" 
    3132 
    3233@interface WCNews(Private) 
     
    5354 
    5455        [self window]; 
     56 
     57        [[NSNotificationCenter defaultCenter] 
     58                addObserver:self 
     59                   selector:@selector(preferencesDidChange:) 
     60                           name:WCPreferencesDidChange]; 
    5561 
    5662        [[self connection] addObserver:self 
     
    285291 
    286292        [[self connection] postNotificationName:WCServerConnectionTriggeredEvent eventTag:WCEventsNewsPosted]; 
     293} 
     294 
     295 
     296 
     297- (void)preferencesDidChange:(NSNotification *)notification { 
     298        [self _update]; 
    287299} 
    288300