Suppose I have a hierarchy like this:
Object subclass: #ClassA
instanceVariableNames: 'name'
classVariableNames: ''
poolDictionaries: ''
category: 'Example'
ClassA subclass: #ClassB
instanceVariableNames: 'bInstVar'
classVariableNames: ''
poolDictionaries: ''
category: 'Example'
ClassB subclass: #ClassC1
instanceVariableNames: 'c1InstVar'
classVariableNames: ''
poolDictionaries: ''
category: 'Example'
ClassB subclass: #ClassC2
instanceVariableNames: 'c2InstVar'
classVariableNames: ''
poolDictionaries: ''
category: 'Azteca-Model'
ClassA is just an abstract parent with the common functionality for the
other classes. Same for ClassB.
Only objects from ClassC1 and ClassC2 are to be created.
Should I create a "descriptionName" method in the class side of ClassA
to be inherited for ClassC1 and ClassC2 or should I create a
"descriptionName" once for each of ClassC1, ClassC2.
The same question about the inst vars for ClassB.
Summary, when you have a previously created hierarchy of classes and you
are trying to refactor code (deleting duplicated code and replace it
with magritte) how should you proceed?
It is valid to inherit the descriptions of parent classes?
What if for ClassC1 name should be displayed as 'Name' and for ClassC2
should be displayed 'Title'?
Regards,
Miguel Cobá
Hi All,
i have one description based on MASingleOptionDescription.
Now it work well when define the items with the options:[ MACityModel DataBase asArray] asDynamicObject.
But because i need to view more text for any item in the list,
i define the options with the method
optionsAndLabels:[( MACityModel DataBase asArray) collect:[:itm| Association key: itm value: itm display]] asDynamicObject
With it the list is right create but d'ont update at " dynamic time " with new item or change to MACityModel DataBase items.
How i can solve my problem ?
" I thinks to found the same problem with MAMultipleOptionsDescription "
Thanks for any consideration,
Dario
Hi,
i work with Magritte framework for define more data about one specific problem.
Now some data is defined as subclass of another class.
For example :
SuperClass with descriptionCode with descriptionComment with descriptionAddress with descriptionReference and ......
SubClassOptionA with descriptionCostumer and ....other specific description for OptionA
SubClassOptionB with descriptionSupply and ..... other specific description for OptionB
My questions are :
A) What's the best method for not replicate the SuperClass descriptions ?
B) If i need to change the label of the priority of one of SuperClass description how i can do it ?
C) When i need to do copy of one description and after send to the copy specific messages ?
D) When i have a specific description,
for example descriptionNazionality based on MASingleOptionDescription,
and i have in the "data base" some reference to it ,
i can define only one basic descriptionNationality and use it ( or copy of it ) with specific attribute ( label priority accessor ) ?
What's the solution for have the best performance ? ( I think to port it to GLASS )
Any pointers would be greatly appreciated!
Thanks!
Dario
Hi,
I just noticed that Google Reader does not manage to read a Pier blog.
I tried with both ming and Lukas, and it finds "no items".
Any idea why?
Cheers,
Doru
--
www.tudorgirba.comwww.tudorgirba.com/blog
"When people care, great things can happen."
There are new versions of both Smallwiki and Smallwiki SCG on Bern Store
Changes Smallwiki
- Metatag Redirect
- Metatag Custom RSS
- RSS fix moved here from Smallwiki SCG
Changes Smallwiki SCG
- Using new Google Analytics script
- No analytics for internal and logged in users
- Logged in users have access to internal pages
Alas I was not able to checkout Smallwiki in a fresh image to run the
test (in the SCG wiki 9 tests fail due to changes in Smallwiki SCG).
There seems to be an issue with Store and version ids.
cheers,
AA