[Pharo-project] default selection of senders
Hi all now I understand when I look for senders of objectViewed I get the method signature selected and it would be great if in such a case the real occurence would be selected instead objectViewed "Answer the morph associated with the player that the structure the receiver currently finds itself within represents." ^ (self outermostMorphThat: [:o | o isKindOf: Viewer orOf: ScriptEditorMorph]) objectViewed
2008/11/27 Stéphane Ducasse <stephane.ducasse@inria.fr>:
Hi all
now I understand when I look for senders of objectViewed I get the method signature selected and it would be great if in such a case the real occurence would be selected instead
objectViewed "Answer the morph associated with the player that the structure the receiver currently finds itself within represents."
^ (self outermostMorphThat: [:o | o isKindOf: Viewer orOf: ScriptEditorMorph]) objectViewed
Uh-oh #isKindOf:orOf: poor me, didn't knew that using isKindOf: is evil. Now i'll use it anywhere! Its fantastic method! I think we should also have #isKindOf:orOf:orOf: as well :)
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
objectViewed "Answer the morph associated with the player that the structure the receiver currently finds itself within represents."
^ (self outermostMorphThat: [:o | o isKindOf: Viewer orOf: ScriptEditorMorph]) objectViewed
Uh-oh #isKindOf:orOf:
poor me, didn't knew that using isKindOf: is evil. Now i'll use it anywhere! Its fantastic method! I think we should also have #isKindOf:orOf:orOf: as well :)
even better isKindOfCollection: and well may be we could also test the instance variable names of the class in addition :) Stef
participants (2)
-
Igor Stasenko -
Stéphane Ducasse