Changeset 24141
- Timestamp:
- 07/01/2008 10:08:44 AM (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/Adium Framework/Source/ESContactAlertsViewController.m
r23643 r24141 51 51 int globalAlertAlphabeticalSort(id objectA, id objectB, void *context); 52 52 53 //#define HEIGHT_DEBUG 54 53 55 @implementation ESContactAlertsViewController 54 56 … … 56 58 - (void)awakeFromNib 57 59 { 60 AILogWithSignature(@""); 58 61 [expandStateDict release]; expandStateDict = [[NSMutableDictionary alloc] init]; 59 62 [requiredHeightDict release]; requiredHeightDict = [[NSMutableDictionary alloc] init]; … … 146 149 { 147 150 [self calculateAllHeights]; 148 [outlineView_summary noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [outlineView_summary numberOfRows]-1)]]; 151 [outlineView_summary reloadData]; 152 // [outlineView_summary noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [outlineView_summary numberOfRows]-1)]]; 149 153 } 150 154 … … 406 410 tableColumnWidth = [tableColumn width]; 407 411 } 408 412 409 413 thisHeight = [attributedTitle heightWithWidth:tableColumnWidth]; 410 414 if (thisHeight > necessaryHeight) necessaryHeight = thisHeight; 415 #ifdef HEIGHT_DEBUG 416 AILogWithSignature(@"%@: width %f height %f", [attributedTitle string], tableColumnWidth, thisHeight); 417 #nedif 411 418 [attributedTitle release]; 412 419 } 413 420 } 414 421 415 necessaryHeight += VERTICAL_ROW_PADDING; 416 422 necessaryHeight += VERTICAL_ROW_PADDING; 423 #ifdef HEIGHT_DEBUG 424 AILogWithSignature(@"%@: %f", item, (enforceMinimumHeight ? 425 ((necessaryHeight > MINIMUM_ROW_HEIGHT) ? necessaryHeight : MINIMUM_ROW_HEIGHT) : 426 necessaryHeight)); 427 #endif 417 428 [requiredHeightDict setObject:[NSNumber numberWithFloat:(enforceMinimumHeight ? 418 429 ((necessaryHeight > MINIMUM_ROW_HEIGHT) ? necessaryHeight : MINIMUM_ROW_HEIGHT) : … … 459 470 group:PREF_GROUP_CONTACT_ALERTS 460 471 objectIgnoringInheritance:listObject]; 461 AILogWithSignature(@"Looking at %@, got %@", listObject, contactAlertsDict);462 472 [contactAlertsEvents release]; contactAlertsEvents = [[NSMutableArray alloc] init]; 463 473 [contactAlertsActions release]; contactAlertsActions = [[NSMutableArray alloc] init]; … … 485 495 [outlineView_summary reloadData]; 486 496 [self calculateAllHeights]; 487 [outlineView_summary noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [outlineView_summary numberOfRows])]]; 488 497 if ([NSApp isOnLeopardOrBetter]) 498 [outlineView_summary noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [outlineView_summary numberOfRows])]]; 499 else 500 [outlineView_summary reloadData]; 501 489 502 if (selectedEventID) { 490 503 int actionsIndex = [contactAlertsEvents indexOfObject:selectedEventID]; … … 581 594 582 595 [self calculateHeightForItem:item]; 583 [outlineView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndex:[outlineView rowForItem:item]]]; 584 // [outlineView display]; 596 if ([NSApp isOnLeopardOrBetter]) 597 [outlineView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndex:[outlineView rowForItem:item]]]; 598 else 599 [outlineView_summary reloadData]; 585 600 } 586 601