mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Correct the name of a delegate method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16296 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
830105b505
commit
81c57842ad
2 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
2003-03-30 19:14 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSScroller.m (-trackKnob:): Wrap each iteration of the
|
||||
loop in an autorelease pool.
|
||||
|
||||
* Source/NSTextView.m: Correct the name of the delegate method
|
||||
-textView:shouldChangeTextInRange:replacementString: (was missing
|
||||
the textView: part).
|
||||
|
||||
2003-03-30 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
|
||||
|
||||
* Source/NSMenuView.m: Reformatted to comply to coding standards
|
||||
|
|
|
@ -209,7 +209,7 @@ some cases, so it needs to be safe wrt. that.
|
|||
object: oldNotifObject];
|
||||
|
||||
if ([_delegate respondsToSelector:
|
||||
@selector(shouldChangeTextInRange:replacementString:)])
|
||||
@selector(textView:shouldChangeTextInRange:replacementString:)])
|
||||
{
|
||||
_tf.delegate_responds_to_should_change = YES;
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ decoded.
|
|||
{
|
||||
SEL selector;
|
||||
|
||||
selector = @selector(shouldChangeTextInRange:replacementString:);
|
||||
selector = @selector(textView:shouldChangeTextInRange:replacementString:);
|
||||
if ([_delegate respondsToSelector: selector])
|
||||
{
|
||||
_tf.delegate_responds_to_should_change = YES;
|
||||
|
@ -2124,8 +2124,9 @@ TextDidEndEditing notification _without_ asking the delegate
|
|||
|
||||
if (_tf.delegate_responds_to_should_change)
|
||||
{
|
||||
return [_delegate shouldChangeTextInRange: affectedCharRange
|
||||
replacementString: replacementString];
|
||||
return [_delegate textView: self
|
||||
shouldChangeTextInRange: affectedCharRange
|
||||
replacementString: replacementString];
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
|
Loading…
Reference in a new issue