Ok, so it's like this:
receiver selectors
returns
#(#expression #expression: #mondrianLabel #accept: #name)
But
receiver expression
throws MessageNotUnderstood.
Any ides how to fix this and why this can be caused?
Ok, so it's like this:
receiver selectors
returns
#(#expression #expression: #mondrianLabel #accept: #name)
But
receiver expression
throws MessageNotUnderstood.
Any ides how to fix this and why this can be caused?
Copyright © 2021 Jogjafile Inc.
                        
You are probably sending the message
expressionto a class instead of an instance of that class.If the result of evaluating
receiver selectorsis#(#expression #expression: #mondrianLabel #accept: #name)thenreceiveris most probably a class. The message#selectorsis implemented on the classBehaviorand returns the selectors of the instance methods of the class. In other words: instances of the class (or any of its subclasses) understand the messages listed.Hence, if you evaluate
receiver expression, then you will get a message not understood exception because the message#expressionis defined on the instance of the class that is the value of yourreceivervariable.