mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
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:
parent
ac18631d40
commit
58edc1e5db
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue