Add new category to NSApplication with a method to order the font

panel front. This makes the standard font panel toolbar item work.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31413 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2010-09-25 08:12:08 +00:00
parent bdda29451c
commit 2d8b12abfa
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-09-25 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSFontManager.m (-orderFrontFontPanel:): Add method to
NSApplication in a new category to make the standard font panel
toolbar item work.
2010-09-24 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSButton.m (-keyDown:): Remove unused code found by

View file

@ -1192,3 +1192,12 @@ static Class fontPanelClass = Nil;
}
@end
@implementation NSApplication(NSFontPanel)
- (void) orderFrontFontPanel: (id)sender
{
[[NSFontManager sharedFontManager] orderFrontFontPanel: sender];
}
@end