Added comments about puzzling [NSFontManager -delegate] which is never used anywhere. Indented a few lines

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24792 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2007-03-07 02:47:11 +00:00
parent ac18631d40
commit 58edc1e5db

View file

@ -932,6 +932,8 @@ static Class fontPanelClass = Nil;
}
/**<p>Sets the NSFontManager's delegate to <var>anObject</var></p>
* FIXME: This is extremely unclear. At the moment, the
* NSFontManager's delegate is never used. This can't be right.
*/
- (void) setDelegate: (id)anObject
{
@ -959,9 +961,17 @@ static Class fontPanelClass = Nil;
NSApplication *theApp = [NSApplication sharedApplication];
if (_action)
return [theApp sendAction: _action to: nil from: self];
{
/* FIXME - shouldn't we try our own delegate first ?? It seems
* what every programmer would expect, but it looks like Apple
* doesn't do it! Or maybe they fixed it in recent releases ?
*/
return [theApp sendAction: _action to: nil from: self];
}
else
return NO;
{
return NO;
}
}
@end