mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
Tidy up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8325 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ca8bda3640
commit
f5c139e32c
1 changed files with 14 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue