encoding & decoding
authorca
Mon, 27 Sep 1999 14:42:24 +0200
changeset 1245 fd0127c25b66
parent 1244 fd44af858001
child 1246 c5425b3c8f3e
encoding & decoding bugfix
TabListEditor.st
--- a/TabListEditor.st	Mon Sep 27 14:04:03 1999 +0200
+++ b/TabListEditor.st	Mon Sep 27 14:42:24 1999 +0200
@@ -1191,7 +1191,7 @@
 doSave
     "generate code for class and instance
     "
-    |cls code spec category mthd|
+    |cls code spec category mthd list|
 
     (specClass notNil and:[specSelector notNil])
     ifFalse:
@@ -1204,7 +1204,10 @@
     listOfTabs isEmpty ifTrue:[^self information:'No tab list defined!!'].
 
     spec  := WriteStream on:String new.
-    UISpecification prettyPrintSpecArray:(listOfTabs literalArrayEncoding) on:spec indent:5.
+    list := Array new:(listOfTabs size).
+    listOfTabs keysAndValuesDo:[:i :el|list at:i put:(el literalArrayEncoding)].
+
+    UISpecification prettyPrintSpecArray:list on:spec indent:5.
     spec := spec contents.
 
     "/ if that method already exists, do not overwrite the category