Changeset 3900
- Timestamp:
- 03/15/06 21:30:51 (2 years ago)
- Files:
-
- WiredServer/trunk/WCAccountsController.h (modified) (1 diff)
- WiredServer/trunk/WCAccountsController.m (modified) (1 diff)
- WiredServer/trunk/WCDashboardController.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredServer/trunk/WCAccountsController.h
r3675 r3900 79 79 80 80 81 #define WCAccountsDidChange @"WCAccountsDidChange" 82 83 81 84 + (WCAccountsController *)accountsController; 82 85 WiredServer/trunk/WCAccountsController.m
r3859 r3900 381 381 if(status) 382 382 status = [self _writeGroupsToFile:WCExpandWiredPath(@"groups")]; 383 384 if(status) { 385 [[NSNotificationCenter defaultCenter] 386 postNotificationName:WCAccountsDidChange 387 object:NULL]; 388 } 383 389 } 384 390 WiredServer/trunk/WCDashboardController.m
r3857 r3900 27 27 */ 28 28 29 #import "WCAccountsController.h" 29 30 #import "WCAuthorization.h" 30 31 #import "WCConfigController.h" … … 103 104 name:WCConfigDidChange 104 105 object:NULL]; 106 107 [[NSNotificationCenter defaultCenter] 108 addObserver:self 109 selector:@selector(accountsDidChange:) 110 name:WCAccountsDidChange 111 object:NULL]; 105 112 } 106 113 … … 130 137 131 138 - (void)configDidChange:(NSNotification *)notification { 139 if([_statusController isAvailable] && [_statusController isRunning]) 140 [self reload:self]; 141 } 142 143 144 145 - (void)accountsDidChange:(NSNotification *)notification { 132 146 if([_statusController isAvailable] && [_statusController isRunning]) 133 147 [self reload:self];
