Author: mlytwyn
Date: Mon Mar 27 19:23:47 2017
New Revision: 40421

URL: http://svn.gna.org/viewcvs/gnustep?rev=40421&view=rev
Log:
Fix NSFormCell NSContents decode for XIB5

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m

Modified: 
libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m?rev=40421&r1=40420&r2=40421&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m   
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/GSXib5KeyedUnarchiver.m   
Mon Mar 27 19:23:47 2017
@@ -38,6 +38,7 @@
 #import "AppKit/NSButtonCell.h"
 #import "AppKit/NSCell.h"
 #import "AppKit/NSClipView.h"
+#import "AppKit/NSFormCell.h"
 #import "AppKit/NSImage.h"
 #import "AppKit/NSMatrix.h"
 #import "AppKit/NSMenu.h"
@@ -2168,6 +2169,10 @@
     {
       NSWarnMLog(@"called for a class that is NOT a sub-class of NSCell - 
class: %@", NSStringFromClass(class));
     }
+  else if ([class isSubclassOfClass: [NSFormCell class]])
+    {
+      object = [element attributeForKey: @"stringValue"];
+    }
   else
     {
       // Try the title attribute first as it's the common encoding...


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to