Comment #4 on issue 7435 by
[hidden email]: [ENH]: Nautilus: Send
unary class-side message from menu
http://code.google.com/p/pharo/issues/detail?id=7435Ah, the joys of copy/paste...
"help: 'Search for a method by name'" -> "help: 'Send this unary message to
the class object'"
And, a check for selectedMethod isNil...
So the new snippet is:
| selectedMethod target |
target := aBuilder model.
selectedMethod := target selectedMethod.
selectedMethod ifNil: [ ^ self ].
(target selectedClass isMeta and: [ selectedMethod selector isUnary ])
ifTrue: [
(aBuilder item: #'Send Message')
action: [ target selectedClass soleInstance perform: selectedMethod
selector ];
order: 0;
help: 'Send this unary message to the class object' ].
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker