Author: gcasa
Date: Fri Nov 6 02:42:51 2015
New Revision: 39156
URL: http://svn.gna.org/viewcvs/gnustep?rev=39156&view=rev
Log:
Fix issue found by Riccardo and Fred when reading in a nib, a panel will get
decoded as a NSWindow instead of an NSPanel.
Modified:
apps/gorm/trunk/ChangeLog
apps/gorm/trunk/GormCore/GormWindowTemplate.m
Modified: apps/gorm/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/ChangeLog?rev=39156&r1=39155&r2=39156&view=diff
==============================================================================
--- apps/gorm/trunk/ChangeLog (original)
+++ apps/gorm/trunk/ChangeLog Fri Nov 6 02:42:51 2015
@@ -1,3 +1,10 @@
+2015-11-05 20:40-EST Gregory John Casamento <[email protected]>
+
+ * GormCore/GormWindowTemplate.m: in baseWindowClass return
+ GormNSPanel if _windowClass is NSPanel. This should probably
+ use GormPalettesManager substituteClasses at some point, but
+ for now this is a workable solution.
+
2015-05-20 06:19-EDT Gregory John Casamento <[email protected]>
* ANNOUNCE
Modified: apps/gorm/trunk/GormCore/GormWindowTemplate.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gorm/trunk/GormCore/GormWindowTemplate.m?rev=39156&r1=39155&r2=39156&view=diff
==============================================================================
--- apps/gorm/trunk/GormCore/GormWindowTemplate.m (original)
+++ apps/gorm/trunk/GormCore/GormWindowTemplate.m Fri Nov 6 02:42:51 2015
@@ -24,7 +24,10 @@
#include "GormWindowTemplate.h"
#include "GormNSWindow.h"
+#include "GormNSPanel.h"
+
// @class GormNSWindow;
+// @class GormNSPanel;
@interface NSWindow (Private)
- (void) _setReleasedWhenClosed: (BOOL)flags;
@@ -51,6 +54,11 @@
- (Class) baseWindowClass
{
+ if([_windowClass isEqualToString:@"NSPanel"])
+ {
+ return [GormNSPanel class];
+ }
+
return [GormNSWindow class];
}
@end
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs