The &quot;equivalent&quot; method is <br><br>doesNotUnderstand: aMessage <br>&nbsp;&nbsp;&nbsp; &nbsp;&quot;Handle the fact that there was an attempt to send the given message to the receiver but the receiver does not understand this message (typically sent from the machine when a message is sent to the receiver and no method is defined for that selector).&quot;
<br>&nbsp;&nbsp;&nbsp; &quot;Testing: (3 activeProcess)&quot;<br><br>Is defined in the Object Class.<br><br><br><div><span class="gmail_quote">On 8/23/06, <b class="gmail_sendername">Bakki Kudva</b> &lt;<a href="mailto:bakki.kudva@gmail.com">
bakki.kudva@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br><br>Rail's Activerecord uses Ruby's method_missing to implement dynamic
<br>finders such as find_by_#column_name()<br><br>which is done by defining in the receiver...<br>def method_missing(method_id, *arguments)<br>&nbsp;&nbsp;&nbsp;&nbsp; if match = /find_(all_by|by)_([_a-zA-Z]\w*)/.match(method_id.to_s)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;finder, deprecated_finder = determine_finder(match),
<br><br>determine_deprecated_finder(match)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attribute_names = extract_attribute_names_from_match(match)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super unless all_attributes_exists?(attribute_names)<br>&lt;snip&gt;<br><br>Does Smalltalk have some way of emulating this?
<br>I am reading Smalltalk-80 books and don't see anything there. Is the<br>current language support such callback hooks (and others which trap<br>object create events and such?)<br><br>I was inspired to study this when I read an old thread (2005) on the
<br>seaside list about writing an activerecord like layer for<br>Seaside...although GLORP may be a better option in the long run. This<br>is pretty much an academic excercise for me now.<br><br>THanks for your help,<br><br>
bakki<br>_______________________________________________<br>Seaside mailing list<br><a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></blockquote></div><br>