Hi Doru,
The mappers in CodeCity map metrics on visual properties of the glyphs. And the way I get the list of selectors that compute metrics is:
<aFAMIXEntity> allDeclaredProperties collect: [:each|each definingMethod selector]
At the time, I did not realize that getting from attribute name to selector is easier than the other way around. And in the case of some of the metrics it seemed more intuitive to show the name of the selector rather than its acronym. Maybe I should have just keep the list of the properties and display their description. Is that possible? Never too late to change :)
Ricky
On Jun 6, 2007, at 8:09 AM, Tudor Girba wrote:
Hi Ricky,
That is an interesting question. I would be very interested in knowing why you need this :).
Could you develop on your use case?
Cheers, Doru
On Jun 6, 2007, at 12:42 AM, Adrian Kuhn wrote:
Hey Ricky,
the otherway round is easier, since you can get from #NOM to #numberOfMethods using
(self metaDescription attributeNamed: #NOM) definingMethod selector
so you could enumerate all attributes and detect the matching one indirectly.
Does this answer your question?
It does, Adrian. Thanks.
cheers, AA