<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p><span style="font-size: 12pt;">[resent due to attachment limit, sorry for the delay!]</span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">Hi Timothy,</span><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p><br>
</p>
<p>not sure if your question has already been answered, but maybe this approach can help you in general to find answers to problems like these. Let's dive into some reverse engineering tools of Squeak!</p>
<p><br>
</p>
<p>First, start a normal System Browser and open the halo on the message category list:</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div>
<div class="_rp_T4" id="Item.MessagePartBody">
<div class="_rp_U4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass" id="Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont"></font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
<img naturalheight="892" naturalwidth="1336" size="203950" id="img789002" tabindex="0" height="180" width="269" style="user-select: none;" src="cid:e247e584-4759-42ff-a8f0-f53590827037">
<div>Then open its debug menu by clicking the wrench icon and choose "browse action code":</div>
<div><img naturalheight="586" naturalwidth="387" size="65978" id="img550043" tabindex="0" height="180" width="118" style="user-select: none;" src="cid:b3e7c197-afce-47e1-8b0c-1ca915e3b728"></div>
<div>And you get the method which the list is configured to call in order to get its contents:</div>
<div><img naturalheight="668" naturalwidth="1223" size="110590" id="img454056" tabindex="0" height="180" width="329" style="user-select: none;" src="cid:e0c18a28-1a14-46b2-8778-a7cd280bba87"> <img naturalheight="663" naturalwidth="1229" size="85930" id="img172038" tabindex="0" height="180" width="333" style="user-select: none;" src="cid:6f42ff60-fbd8-4368-93a1-98e507f1ec6f"></div>
<div>By selecting #rawMessageCategoryList and pressing <cmd>m, you also get the second screenshot where you can see that your desired method is named #categories. Select #classOrMetaClassOrganizer and press <cmd>m again to find out where the organizer comes
 from:</div>
<div><img naturalheight="669" naturalwidth="1227" size="99460" id="img190393" tabindex="0" height="180" width="330" style="user-select: none;" src="cid:a8efb7da-3286-4c44-a2be-35891b6aec32"><br>
</div>
<div>Okay, this is stored as an instance variable, but how is it set? Right-click the message from the list and choose "assignments..." (you can also do this in any class browser, btw). Next, select classOrganizer from the list.</div>
<div><img naturalheight="825" naturalwidth="395" size="77865" id="img376157" tabindex="0" height="180" width="86" style="user-select: none;" src="cid:92bd22b3-618e-4214-beed-378328dbadc1"><br>
</div>
<div>And you will find:</div>
<div><img naturalheight="671" naturalwidth="1298" size="115825" id="img557680" tabindex="0" height="180" width="348" style="user-select: none;" src="cid:37b7bac7-e643-4145-ba08-f25172e74920"><br>
</div>
<div><br>
</div>
<div><span style="font-size:12pt">So your script might look like this: MyClass organization </span><span style="font-size:12pt">categories.</span><br>
</div>
<div><br>
</div>
<div>I hope this might help you to answer future questions! And please forgive me if I told you something you already knew :-)</div>
<div>Have a nice time with Squeak!</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph<br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Beginners <beginners-bounces@lists.squeakfoundation.org> im Auftrag von tty <gettimothy@zoho.com><br>
<b>Gesendet:</b> Mittwoch, 15. Januar 2020 20:26 Uhr<br>
<b>An:</b> beginners@lists.squeakfoundation.org<br>
<b>Betreff:</b> [Newbies] code to retrieve all method categories and methods under a category</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">Hi All.<br>
<br>
I want to dynamically build a drop-down menu in Seaside based on the<br>
instance side methods I have in a class.<br>
<br>
#MyClass has method categories: "Attributes Links Paragraph....etc"<br>
Under Method category Links are  methods #testLinkCategory,<br>
testLinkExternal, testLink....etc.<br>
<br>
I have been hunting for over an hour and I see no obvious way to retrieve<br>
this info (I have found a way to get all the methods, but not the category<br>
that houses them.<br>
<br>
<br>
The code I have in mind has form:<br>
<br>
*categories := categoriesFor: #MyClass.<br>
<br>
categories do:[:cat | |methods|<br>
             methods :=  methodForClass:#MyClass category: cat.<br>
             methods do:[:m | <br>
                             "dynamically build my html here"<br>
]]l*<br>
<br>
<br>
Any help much appreciated.<br>
<br>
thx<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://forum.world.st/Squeak-Beginners-f107673.html" id="LPlnk694980" previewremoved="true">
http://forum.world.st/Squeak-Beginners-f107673.html</a>
<div id="LPBorder_GT_15791863719710.0030845570008988243" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="LPContainer_15791863719640.9170399494378905" cellspacing="0" style="width:90%; background-color:rgb(255,255,255); overflow:auto; padding-top:20px; padding-bottom:20px; margin-top:20px; border-top:1px dotted rgb(200,200,200); border-bottom:1px dotted rgb(200,200,200)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="TextCell_15791863719670.02557671843738807" colspan="2" style="vertical-align: top; padding: 0px; display: table-cell; position: relative;">
<div id="LPRemovePreviewContainer_15791863719670.11090623595234672"></div>
<div id="LPTitle_15791863719670.4645593669360608" style="top:0px; color:rgb(36,96,118); font-weight:400; font-size:21px; font-family:wf_segoe-ui_light,"Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height:21px">
<a id="LPUrlAnchor_15791863719680.848518693677228" href="http://forum.world.st/Squeak-Beginners-f107673.html" target="_blank" style="text-decoration:none">Smalltalk - Squeak - Beginners | Mailing List Archive</a></div>
<div id="LPMetadata_15791863719690.009678444679190212" style="margin:10px 0px 16px; color:rgb(102,102,102); font-weight:400; font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:14px">
forum.world.st</div>
<div id="LPDescription_15791863719700.12904345723356703" style="display:block; color:rgb(102,102,102); font-weight:400; font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:20px; max-height:100px; overflow:hidden">
Squeak - Beginners forum and mailing list archive. This list is the place to ask all the "simple" questions you as a newcomer to squeak always wanted to ask.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
Beginners@lists.squeakfoundation.org<br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" id="LPlnk987583" previewremoved="true">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>