Changeset 520 for trunk


Ignore:
Timestamp:
05/25/09 03:06:23 (16 years ago)
Author:
Nicholas Riley
Message:

Save the most recent alarm message across runs of Pester.

File:
1 edited

Legend:

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

    r355 r520  
    3636}
    3737
     38- (void)_clearEntry;
     39{
     40    [self setStringValue: @""];
     41    // force bindings to update
     42    [self textDidChange: [NSNotification notificationWithName: NSControlTextDidChangeNotification
     43                                                       object: [[self window] fieldEditor: NO forObject: self]]];
     44}
     45
    3846- (IBAction)removeEntry:(id)sender;
    3947{
     
    4452    }
    4553    if (idx != -1) [self removeItemAtIndex: idx];
    46     [self setStringValue: @""];
     54    [self _clearEntry];
    4755    [self _writeHistory];
    4856}
     
    5260    [self removeAllItems];
    5361    [self setStringValue: @""];
     62    [self _clearEntry];
    5463    [self _writeHistory];
    5564}
Note: See TracChangeset for help on using the changeset viewer.