mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
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:
parent
e8d1671cfc
commit
fabc6eb8cc
3 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -96,6 +96,11 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) canBecomeKeyWindow
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (NSString *) className
|
||||
{
|
||||
return @"NSWindow";
|
||||
|
|
Loading…
Reference in a new issue