<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi, <br>
</p>
<p>I have an <b>Error: perform:withArguments:inSuperclass: failed</b><br>
</p>
<p>1. Listening to the #checkSelection event from the check object:</p>
<blockquote>
<p><font face="monospace" color="#97082d">check when:
#checkSelection send: #changedCheck:for: to: self
withArguments: {check. aPref} .</font></p>
</blockquote>
<p>2. Then when the check object trigger the event:</p>
<blockquote>
<p><font face="monospace" color="#97082d">self triggerEvent:
#checkSelection with: self</font></p>
</blockquote>
<p>This error shows up. Of course the #changedCheck:for: method is
implemented.</p>
<p>It is a primitive fail, the message primitiveFailed is reached:</p>
<blockquote><font face="monospace" color="#97082d">perform: selector
withArguments: argArray inSuperclass: lookupClass</font><br>
<font face="monospace" color="#97082d"> "NOTE: This is just
like perform:withArguments:, except that</font><br>
<font face="monospace" color="#97082d"> the message lookup
process begins, not with the receivers's class,</font><br>
<font face="monospace" color="#97082d"> but with the supplied
superclass instead. It will fail if lookupClass</font><br>
<font face="monospace" color="#97082d"> cannot be found among
the receiver's superclasses.</font><br>
<font face="monospace" color="#97082d"> Primitive. Essential.
See Object documentation whatIsAPrimitive."</font><br>
<br>
<font face="monospace" color="#97082d"> <primitive: 100></font><br>
<font face="monospace" color="#97082d"> (selector isMemberOf:
Symbol)</font><br>
<font face="monospace" color="#97082d"> ifFalse: [^ self
error: 'selector argument must be a Symbol'].</font><br>
<font face="monospace" color="#97082d"> (selector numArgs =
argArray size)</font><br>
<font face="monospace" color="#97082d"> ifFalse: [^ self
error: 'incorrect number of arguments'].</font><br>
<font face="monospace" color="#97082d"> (self class ==
lookupClass or: [self class inheritsFrom: lookupClass])</font><br>
<font face="monospace" color="#97082d"> ifFalse: [^ self
error: 'lookupClass is not in my inheritance chain'].</font><br>
<font face="monospace" color="#97082d"> self primitiveFailed</font><br>
</blockquote>
<p>Hilaire<br>
</p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>