Changeset 520 for trunk/Cocoa/Pester/Source/NJRHistoryTrackingComboBox.m
- Timestamp:
- 05/25/09 03:06:23 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/NJRHistoryTrackingComboBox.m
r355 r520 36 36 } 37 37 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 38 46 - (IBAction)removeEntry:(id)sender; 39 47 { … … 44 52 } 45 53 if (idx != -1) [self removeItemAtIndex: idx]; 46 [self setStringValue: @""];54 [self _clearEntry]; 47 55 [self _writeHistory]; 48 56 } … … 52 60 [self removeAllItems]; 53 61 [self setStringValue: @""]; 62 [self _clearEntry]; 54 63 [self _writeHistory]; 55 64 }
Note:
See TracChangeset
for help on using the changeset viewer.