29 Apr 17:42
Re: MAToOneRelationDescription dispaly data
From: Lukas Renggli <renggli <at> iam.unibe.ch>
Subject: Re: MAToOneRelationDescription dispaly data
Newsgroups: gmane.comp.lang.smalltalk.smallwiki
Date: 2008-04-29 15:42:22 GMT
Subject: Re: MAToOneRelationDescription dispaly data
Newsgroups: gmane.comp.lang.smalltalk.smallwiki
Date: 2008-04-29 15:42:22 GMT
Mhh, I just noticed that there is a possible bug in MAExternalEditorComponent related to printing one-to-one relations. This is ready to review in Magritte-Seaside-lr.261. Lukas On Apr 29, 2008, at 17:01 , Lukas Renggli wrote: >> | If so, try this >> >> | reference: (MAContainer with: (MAStringDescription new >> | selectorAccessor: #printString; yourself)) >> >> | and implement your own printOn: method in your referenced object as >> | you wish. >> >> I've test this solution but d'ont work. >> >> The printOn: method in my referenced object is never call. >> >> I work with vw7.5 and seaside 2.8a1. > > This is odd, because it works on Squeak. > > Actually in Squeak you don't even need to specify any reference > description, because the default is an MAStringDescription what causes > #asString to be sent to the object. > > Since you are on VisualWorks #asString might not work as expected. > Maybe you want to try and implement it yourself on your object and > don't specify any reference description? > > I added a test in Squeak that should find that kind of bug. > > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > SmallWiki, Magritte, Pier and Related Tools ... > https://www.iam.unibe.ch/mailman/listinfo/smallwiki -- -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki
RSS Feed