Force find/replace text fields to recreate display string

The previous attempt does not work on macOS 10.12, presumably because the object value doesn’t actually change, despite the setter being invoked.
This commit is contained in:
Allan Odgaard
2016-09-30 14:10:23 +02:00
parent 39f689294d
commit 5f11d65308

View File

@@ -919,9 +919,16 @@ static NSButton* OakCreateStopSearchButton ()
// Re-format current value
if(!_findTextField.currentEditor)
{
_findTextField.objectValue = nil;
_findTextField.objectValue = _findString;
}
if(!_replaceTextField.currentEditor)
{
_replaceTextField.objectValue = nil;
_replaceTextField.objectValue = _replaceString;
}
[self addStylesToFieldEditor];
}