Correction for Bug#12224

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20870 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-03-08 03:12:32 +00:00
parent e8d1671cfc
commit fabc6eb8cc
3 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-03-07 22:18 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Added code to make the window of the widget
selected, the key window. This helps correct Bug#12224.
* Palettes/1Windows/GormNSWindow.m: Added method canBecomeKeyWindow
to guarantee that it returns YES.
2005-03-06 06:20 Gregory John Casamento <greg_casamento@yahoo.com>
* Documentation/Gorm.texi: Added FAQ concerning font modification.

View file

@ -2964,6 +2964,7 @@ static NSImage *fileImage = nil;
[(Gorm *)NSApp stopConnecting]; // cease any connection
if ([(NSObject *)anEditor respondsToSelector: @selector(window)])
{
[[anEditor window] makeKeyWindow];
[[anEditor window] makeFirstResponder: (id)anEditor];
}
[nc postNotificationName: IBSelectionChangedNotification

View file

@ -96,6 +96,11 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
return NO;
}
- (BOOL) canBecomeKeyWindow
{
return YES;
}
- (NSString *) className
{
return @"NSWindow";