Fix for NSSearchField not sending action messages during typing

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30011 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-03-20 20:57:15 +00:00
parent 05beafea2e
commit aaf93b224a
2 changed files with 18 additions and 6 deletions

View file

@ -1,3 +1,16 @@
2010-03-20 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSSearchFieldCell.m:
Move subscription to NSTextDidChangeNotification from
-editWithFrame:... to -selectWithFrame:...
The reason for this is -editWithFrame:... is not always called
when the field starts being edited. (This seems odd but matches
OS X behaviour). -selectWithFrame: is always called, however.
This fixes the bug where NSSearchField doesn't send action
messages while the user is typing, when it is supposed to.
2010-03-20 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTextView.m (-buildUpTextNetwork:): Prevent retain cycle

View file

@ -357,12 +357,6 @@
editor: textObject
delegate: anObject
event: theEvent];
[[NSNotificationCenter defaultCenter]
addObserver: self
selector: @selector(textDidChange:)
name: NSTextDidChangeNotification
object: textObject];
}
- (void) endEditing: (NSText *)editor
@ -389,6 +383,11 @@
delegate: anObject
start: selStart
length: selLength];
[[NSNotificationCenter defaultCenter]
addObserver: self
selector: @selector(textDidChange:)
name: NSTextDidChangeNotification
object: textObject];
}
- (BOOL) trackMouse: (NSEvent *)event