Changeset 4978

Show
Ignore:
Timestamp:
10/19/07 09:54:07 (9 months ago)
Author:
morris
Message:

Sync with WA

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredServer/trunk/WCAccountsController.m

    r4496 r4978  
    340340 
    341341        cell = [[WIIconCell alloc] init]; 
    342         [cell setImageWidth:16.0]; 
    343         [cell setDrawsWhitespace:YES]; 
    344342        [[_tableView tableColumnWithIdentifier:@"Name"] setDataCell:cell];   
    345343        [cell release]; 
     
    570568 
    571569- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 
    572         WCAccount   *account; 
    573          
    574         account = [_accounts objectAtIndex:row]; 
    575          
    576         return [NSDictionary dictionaryWithObjectsAndKeys: 
    577                 [account name], 
    578                         WIIconCellTitleKey, 
    579                 [account type] == WCAccountUser ? _userImage : _groupImage, 
    580                         WIIconCellIconKey, 
    581                 NULL]; 
    582 
    583  
     570        return [[_accounts objectAtIndex:row] name]; 
     571
     572 
     573 
     574 
     575- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row { 
     576        [cell setImage:([(WCAccount *) [_accounts objectAtIndex:row] type] == WCAccountUser) ? _userImage : _groupImage]; 
     577
    584578 
    585579