mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +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*) fieldEditor: (BOOL)createFlag forObject: (id)anObject
|
||||||
{
|
{
|
||||||
NSText *edit;
|
|
||||||
/* ask delegate if it can provide a field editor */
|
/* ask delegate if it can provide a field editor */
|
||||||
if ((_delegate != anObject) &&
|
if ((_delegate != anObject)
|
||||||
[_delegate respondsToSelector:
|
&& [_delegate respondsToSelector:
|
||||||
@selector(windowWillReturnFieldEditor:toObject:)] &&
|
@selector(windowWillReturnFieldEditor:toObject:)])
|
||||||
(edit = [_delegate windowWillReturnFieldEditor: self toObject: anObject]) != nil)
|
{
|
||||||
return edit;
|
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
|
* Each window has a global text field editor, if it doesn't exist create it
|
||||||
* if create flag is set
|
* if create flag is set
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue