<br><br><div class="gmail_quote">On Mon, Sep 20, 2010 at 11:44 AM, Chris Muller <span dir="ltr"><<a href="mailto:asqueaker@gmail.com">asqueaker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
My thought was that if you've had to select the method in order to get<br>
the menu in order to even access the "copy selector" function, then<br>
that means the selector is already displayed in the bottom text pane,<br>
and from there it's exactly same number of gestures to copy and paste<br>
from there as it is to select it from the menu (3 in both cases);<br>
albeit, with the arguments which maybe you don't want..??</blockquote><div><br></div><div>Exactly. One wants just the selector, not the message pattern. I'm sick of editing out the arguments from message patterns, e.g. when I need to mention a specific method in an email.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Sorry, I<br>
was unclear what use-case you were referring to ("paste it into<br>
message names"?).<br></blockquote><div><br></div><div>The message names tool. Try world menu->open...->message names</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Eliot, if it is perfectly useful to you to only copy the selector then<br>
I don't want to disrupt that, of course, so I will put it back..<br></blockquote><div><br></div><div>I'm not saying don't put in your extension; I'm sure it's useful. I'm saying don't break backwards-compatibility. So you can either make it a preference or a different function.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
- Chris<br>
</font><div><div></div><div class="h5"><br>
On Sun, Sep 19, 2010 at 7:14 PM, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
> So if I want to copy a selector, e.g. to paste it into message names I then<br>
> have to delete the lass>> part? Please, can we add a "copy signature"<br>
> instead of change the semantics of something perfectly useful?<br>
> Also,isn't "method reference" a better name for aClass>>selector than<br>
> signature? Signatures typically have arity, return and argument type<br>
> information . This is something a little simpler.<br>
><br>
> On Sun, Sep 19, 2010 at 2:50 PM, <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br>
>><br>
>> Chris Muller uploaded a new version of Monticello to project The Trunk:<br>
>> <a href="http://source.squeak.org/trunk/Monticello-cmm.400.mcz" target="_blank">http://source.squeak.org/trunk/Monticello-cmm.400.mcz</a><br>
>><br>
>> ==================== Summary ====================<br>
>><br>
>> Name: Monticello-cmm.400<br>
>> Author: cmm<br>
>> Time: 19 September 2010, 4:50:02.156 pm<br>
>> UUID: 815ed4bb-b5b4-420c-9639-018beb254ae9<br>
>> Ancestors: Monticello-bf.399<br>
>><br>
>> Change "copy selector" to copy the signature of the method to the<br>
>> clipboard, not just the selector.<br>
>><br>
>> =============== Diff against Monticello-bf.399 ===============<br>
>><br>
>> Item was changed:<br>
>> ----- Method: MCCodeTool>>copySelector (in category 'menus') -----<br>
>> copySelector<br>
>> "Copy the selected selector to the clipboard"<br>
>> + self selectedMessageName ifNotNilDo:<br>
>> + [ : selector | Clipboard clipboardText:<br>
>> + (self selectedClassOrMetaClass<br>
>> + ifNil: [ selector asString ]<br>
>> + ifNotNilDo: [ : cls | (cls >> selector)<br>
>> signature ]) ]!<br>
>> -<br>
>> - | selector |<br>
>> - (selector := self selectedMessageName) ifNotNil:<br>
>> - [Clipboard clipboardText: selector asString]!<br>
>><br>
>><br>
><br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br>