Ignore:
Timestamp:
Dec 10, 2009, 1:06:04 PM (13 years ago)
Author:
livings124
Message:

return to using a static NSUInteger for message index - even if never reset, it's never going to hit its max and this is much simpler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/MessageWindowController.m

    r9703 r9708  
    159159    [fLock lock];
    160160   
    161     NSUInteger currentIndex = [fMessages count] > 0 ? ([[[fMessages lastObject] objectForKey: @"Index"] unsignedIntegerValue] + 1) : 0;
     161    static NSUInteger currentIndex = 0;
    162162   
    163163    NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller];
Note: See TracChangeset for help on using the changeset viewer.