git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8325 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
nico 2000-12-16 02:03:03 +00:00
parent ca8bda3640
commit f5c139e32c

View file

@ -918,14 +918,21 @@ static NSMapTable* windowmaps = NULL;
- (NSText*) fieldEditor: (BOOL)createFlag forObject: (id)anObject
{
NSText *edit;
/* ask delegate if it can provide a field editor */
if ((_delegate != anObject) &&
[_delegate respondsToSelector:
@selector(windowWillReturnFieldEditor:toObject:)] &&
(edit = [_delegate windowWillReturnFieldEditor: self toObject: anObject]) != nil)
return edit;
if ((_delegate != anObject)
&& [_delegate respondsToSelector:
@selector(windowWillReturnFieldEditor:toObject:)])
{
NSText *editor;
editor = [_delegate windowWillReturnFieldEditor: self
toObject: anObject];
if (editor != nil)
{
return editor;
}
}
/*
* Each window has a global text field editor, if it doesn't exist create it
* if create flag is set