Changeset 4978
- Timestamp:
- 10/19/07 09:54:07 (9 months ago)
- Files:
-
- WiredServer/trunk/WCAccountsController.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredServer/trunk/WCAccountsController.m
r4496 r4978 340 340 341 341 cell = [[WIIconCell alloc] init]; 342 [cell setImageWidth:16.0];343 [cell setDrawsWhitespace:YES];344 342 [[_tableView tableColumnWithIdentifier:@"Name"] setDataCell:cell]; 345 343 [cell release]; … … 570 568 571 569 - (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 } 584 578 585 579
