Ignore:
Timestamp:
Jan 14, 2008, 3:10:41 PM (15 years ago)
Author:
livings124
Message:

fix autoscrolling in message window when it's full; trivial changes to peer string encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/MessageWindowController.m

    r4423 r4660  
    144144        //remove the oldest
    145145        NSSortDescriptor * descriptor = [[[NSSortDescriptor alloc] initWithKey: @"Date" ascending: YES] autorelease];
    146         NSArray * descriptors = [[NSArray alloc] initWithObjects: descriptor, nil];
    147         [fMessages sortUsingDescriptors: descriptors];
    148         [descriptors release];
     146        [fMessages sortUsingDescriptors: [NSArray arrayWithObject: descriptor]];
    149147       
    150148        [fMessages removeObjectsInRange: NSMakeRange(0, total-MAX_MESSAGES)];
    151149       
    152150        [fMessageTable noteHeightOfRowsWithIndexesChanged: [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, MAX_MESSAGES)]];
     151        total = MAX_MESSAGES;
    153152    }
    154153   
Note: See TracChangeset for help on using the changeset viewer.