Ignore:
Timestamp:
12/21/09 22:13:15 (14 years ago)
Author:
Nicholas Riley
Message:

Remove selectString:inTableView: which seems unused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/NJRTableView.m

    r605 r607  
    6363- (void)insertText:(id)inString;
    6464{
    65     if (![[self delegate] respondsToSelector:@selector(selectString:inTableView:)]) {
    66         // For consistency with List Manager as documented, reset the typeahead buffer after twice the delay until key repeat (in ticks).
    67         NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    68         int keyRepeatTicks = [defaults integerForKey: @"InitialKeyRepeat"];
    69         NSTimeInterval resetDelay;
     65    // For consistency with List Manager as documented, reset the typeahead buffer after twice the delay until key repeat (in ticks).
     66    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
     67    int keyRepeatTicks = [defaults integerForKey: @"InitialKeyRepeat"];
     68    NSTimeInterval resetDelay;
    7069
    71         if (keyRepeatTicks == 0) keyRepeatTicks = 35; // default may be missing; if so, set default
     70    if (keyRepeatTicks == 0) keyRepeatTicks = 35; // default may be missing; if so, set default
    7271
    73         resetDelay = MIN(2.0 / 60.0 * keyRepeatTicks, 2.0);
     72    resetDelay = MIN(2.0 / 60.0 * keyRepeatTicks, 2.0);
    7473
    75         if (typed == nil) typed = [[NSMutableString alloc] init];
    76         [typed appendString: inString];
     74    if (typed == nil) typed = [[NSMutableString alloc] init];
     75    [typed appendString: inString];
    7776
    78         // Cancel any previously queued future invocations of _resetTypeSelect
    79         [NSObject cancelPreviousPerformRequestsWithTarget: self selector: @selector(_resetTypeSelect) object: nil];
     77    // Cancel any previously queued future invocations of _resetTypeSelect
     78    [NSObject cancelPreviousPerformRequestsWithTarget: self selector: @selector(_resetTypeSelect) object: nil];
    8079
    81         // queue an invocation of clearAccumulatingTypeahead for the near future.
    82         [self performSelector: @selector(_resetTypeSelect) withObject: nil afterDelay: resetDelay];
     80    // queue an invocation of clearAccumulatingTypeahead for the near future.
     81    [self performSelector: @selector(_resetTypeSelect) withObject: nil afterDelay: resetDelay];
    8382
    84         // Use stringWithString to make an autoreleased copy, since we may clear out the original string below before it can be used.
    85         [[self delegate] tableView: self selectRowMatchingString: [NSString stringWithString: typed]];
     83    // Use stringWithString to make an autoreleased copy, since we may clear out the original string below before it can be used.
     84    [[self delegate] tableView: self selectRowMatchingString: [NSString stringWithString: typed]];
    8685
    87         // Show the current typeahead string in the optional display field, like CodeWarrior does (well, not really, CW is much more elegant because it doesn't select anything until you stop typing)
    88         [typeSelectDisplay setObjectValue: typed];
    89     }
     86    // Show the current typeahead string in the optional display field, like CodeWarrior does (well, not really, CW is much more elegant because it doesn't select anything until you stop typing)
     87    [typeSelectDisplay setObjectValue: typed];
    9088}
    9189
Note: See TracChangeset for help on using the changeset viewer.