did you try to generate a string (I know this is not the same) container := CLPanel new. container name: 'container'. container text: ''. container usePolymorphStyleMechanism: true. container balloonText: nil. container enabled: true. container location: 8@10. container extent: 653@460. container anchors: {false .false .false .false .}. container imageResource: nil. container style: { (BorderStyle width: 0 color: Color transparent) .(Color r: 0.972 g: 0.972 b: 0.944) .(Color r: 0.972 g: 0.972 b: 0.944) .false .false .}. container minWidth: 2. container minHeight: 2. container layout: {ProportionalLayout .#rigid .#rigid .0 .#center .#none .0 .#topLeft .#topToBottom .#none .false .#topLeft .#none .0 .1073741823 .}. container visible = false. container openInWorld. => 'Panel name: ''container'' usePolymorphStyleMechanism: true. enabled: true. location: 8@10. extent: 653@460. anchors: {false .false .false .false .}. ... minWidth: 2. minHeight: 2. layout: #(ProportionalLayout .#rigid .#rigid .0 .#center .#none .0 .#topLeft .#topToBottom .#none .false .#topLeft .#none .0 .1073741823 ) . visible: false.' then you parse only subexpressions delimited by #( ) and do a big perform: loop what you could do is also to decouple the description from its interpretation using a Builder Design Pattern. This way you do not bind the spec to your specific widgets and you could customize your build with different widgets. PS: Apparently you have a problem also container visible = false. => container visible: false. Stef On Jul 31, 2010, at 10:57 AM, nullPointer wrote:
I get that error when I try save a CLView builded with the UIBuilder
More than 256 literals referenced. You must split or otherwise simplify this method. The 257th literal is: 128
Select Proceed to continue, or close this window to cancel the operation.
How I can solve that problem? The method than I try save is generated programmatically...
Thanks -- View this message in context: http://forum.world.st/Limitation-of-number-os-literals-in-a-method-tp2308740... Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project