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


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to