<br><br><div class="gmail_quote">On Sun, Mar 1, 2009 at 10:59 AM, Sebastian Sastre <span dir="ltr">&lt;<a href="mailto:ssastre@seaswork.com">ssastre@seaswork.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2">Hi Eliot,</font></span></div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2">yes, I&#39;ve called the method allActualMethodsInCategory: to 
clarify what should be ovbious (so not need to clarify) but the clarification is 
needed because someone made a transformation of a method into a string without 
clarifiying it properly like allMethodsNamesInCategory: or 
allMethodsAsStringsInCategory: Annoying really.</font></span></div></div></blockquote><div><br></div><div>In Smalltalk-80 the list browsers used to consume a list of strings of the form &#39;ThisClass&gt;selector&#39; or &#39;ThatClass class&gt;selector&#39; which was a pain in the behind to parse.  Some of these vestiges still exist in SystemNavigation.  In our image at Qwaq I&#39;ve been modifying the last of these to answer MethodReference.</div>
<div><br></div><div>What I find annoying is that MethodReference understands methodSymbol instead of selector, and actualClass instead of implementingClass ;)</div><div>  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2"></font></span></div>
<div dir="ltr" align="left"><span class="Apple-style-span" style="color: rgb(0, 0, 255); font-family: &#39;Trebuchet MS&#39;; ">Note 
that in the new category you must put some category different from &#39;as yet 
unclassified&#39; or it will be ignored otherwise.</span></div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2">I&#39;ve also noted particularly confusive to find 
something categorizable which is not categorized named under: &#39;not yet 
classified&#39;. I mean, we have a system that uses the concept of class for 
something completely different. That is like a digital kick in the but for those 
who don&#39;t have it perflectly clear before dropping into 
squeak.</font></span></div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2">In the other hand, I found as usual here, a very helpful 
community and you Eliot where very kind in sending that 
script.</font></span></div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2">
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2">Again Eliot, thanks a lot, now I&#39;ve rescued about ~400 
methods imagine doing that manually :)</font></span></div></font></span></div></div></blockquote><div><br></div><div>You&#39;re welcome.  Getting to know SystemNavigation, especially things like browseAllSelect: and combining the results of several queries is worth it because they can really help in browsing, source generation etc.</div>
<div><br></div><div>Best</div><div>Eliot</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div dir="ltr" align="left"><span><font face="Trebuchet MS" color="#0000ff" size="2"><div dir="ltr" align="left">
<span><font face="Trebuchet MS" color="#0000ff" size="2"></font></span></div>
<div dir="ltr" align="left"><span>best</span></div>
<div dir="ltr" align="left"><span>sebastian</span></div>
<div dir="ltr" align="left"><span></span> </div></font></span></div><br>
<blockquote style="padding-left:5px;margin-left:5px;border-left:#0000ff 2px solid;margin-right:0px">
  <div lang="es" dir="ltr" align="left">
  <hr>
  <font face="Tahoma" size="2"><b>De:</b> 
  <a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a> 
  [mailto:<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" target="_blank">squeak-dev-bounces@lists.squeakfoundation.org</a>] <b>En nombre de 
  </b>Eliot Miranda<br><b>Enviado el:</b> Sunday, March 01, 2009 
  04:09<br><b>Para:</b> The general-purpose Squeak developers 
  list<br><b>Asunto:</b> Re: [squeak-dev] recategorize a 
  bunch<br></font><br></div><div><div></div><div class="Wj3C7c">
  <div></div><br><br>
  <div class="gmail_quote">On Sat, Feb 28, 2009 at 7:42 PM, Sebastian Sastre <span dir="ltr">&lt;<a href="mailto:ssastre@seaswork.com" target="_blank">ssastre@seaswork.com</a>&gt;</span> 
  wrote:<br>
  <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">hi 
    there, while loading some stuff of mine form an image to another, I 
    was<br>annoyed/surprised by not finding some methods. Then I&#39;ve figured out 
    that all<br>not imported methods where missing because somehow they happen 
    to be under a<br>category named *-changed some others under 
    *-compilation-issues.<br><br>There is a way I can query the system 
    (monticello?) to get the whole and set<br>them another category (so I can 
    save the packageproperly)?</blockquote>
  <div><br></div>
  <div>Let&#39;s say that SystemNavigation&gt;&gt;allMethodsInCatergory: answers 
  MethodReference instances instead of &#39;Classd&gt;selector&#39; string thingies, and 
  if it doesn&#39;t that it can by defining it as</div>
  <div><br></div>
  <div>SystemNavigation methods for query<br></div>
  <div>allMethodsInCategory: category </div>
  <div><span style="white-space:pre"></span>| aCollection 
  |</div>
  <div><span style="white-space:pre"></span>aCollection := 
  Set new.</div>
  <div><span style="white-space:pre"></span>Cursor wait 
  showWhile:</div>
  <div><span style="white-space:pre"></span>[self 
  allBehaviorsDo:</div>
  <div><span style="white-space:pre"></span>[:x |</div>
  <div><span style="white-space:pre"></span>((category = 
  ClassOrganizer allCategory</div>
  <div><span style="white-space:pre"></span>ifTrue: [x 
  organization allMethodSelectors]</div>
  <div><span style="white-space:pre"></span>ifFalse: [x 
  organization listAtCategoryNamed: category])) do:</div>
  <div><span style="white-space:pre"></span>[:sel | 
  aCollection add: (MethodReference new setStandardClass: x methodSymbol: 
  sel)]]].</div>
  <div><span style="white-space:pre"></span>^aCollection.</div>
  <div><br></div>
  <div>then you want to say</div>
  <div><br></div>
  <div>    (SystemNavigation default allMethodsInCategory: #&#39;* 
  whatever the category * was called&#39;) do:</div>
  <div>        [:mr|</div>
  <div>        mr actualClass organization</div>
  <div>            classify: mr 
  methodSymbol</div>
  <div>            under: #&#39;what I would like 
  the category to be&#39;]</div>
  <div><span style="white-space:pre"></span> </div>
  <blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid"><br><br>thanks,<br><font color="#888888"><br>sebastian<br><br><br></font></blockquote></div><br></div></div></blockquote>
</div>
<br><br>
<br></blockquote></div><br>