ReferenceView>>nameOf:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ReferenceView>>nameOf:

Dmitry Zamotkin-5
I suppose method #nameOf: of ReferenceView class should be overriden for
correct name resolution:

nameOf: aView
    aView == self referee ifTrue: [ ^ self name ].
    ^ super nameOf: aView

--
Dmitry Zamotkin


Reply | Threaded
Open this post in threaded view
|

Re: ReferenceView>>nameOf:

Blair McGlashan
Dmitry

You wrote in message news:[hidden email]...
> I suppose method #nameOf: of ReferenceView class should be overriden for
> correct name resolution:
>
> nameOf: aView
>     aView == self referee ifTrue: [ ^ self name ].
>     ^ super nameOf: aView

Well the #nameOf: message is intended to answer the name of a sub-view.
Since the "referee" of a ReferenceView is not logically a sub-view (although
it is physically), we're not convinced that it is not correct for
ReferenceView to just inherit the View implementation, which always answers
nil.

Is there any specific issue which the implementation above corrects for you?

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: ReferenceView>>nameOf:

Dmitry Zamotkin-5
Blair

>> I suppose method #nameOf: of ReferenceView class should be overriden
>> for correct name resolution:
>>
>> nameOf: aView
>>     aView == self referee ifTrue: [ ^ self name ].
>>     ^ super nameOf: aView
>
> Is there any specific issue which the implementation above corrects
> for you?

Yes, maybe it is a specific problem. I use Ini package of Louis Sumberg
(http://www.mindspring.com/~lsumberg/PersonalMoney/Ini.htm) and name of
referee is needed.

--
Dmitry Zamotkin