[Question] SystemWindow testing
Steven Elkins
sgelkins at nortelnetworks.com
Wed May 31 14:03:46 UTC 2000
Karl Ramberg wrote:
>
> Hi,
> I'm testing the following code in a method:
>
> test _ self world submorphs first.
> test = SystemWindow
> ifTrue:[test passivate]
>
> but it never triggers. When I inspect test it say's it's a SystemWindow('Transcript') etc.
> What else is test than a SystemWindow ?
Probably test is an instance of the class SystemWindow, i.e., not
equal. There's a protocol called 'class membership' on the instance
side of Object that probably has what you mean, something like
#isKindOf: or #isMemberOf:.
HTH,
Steve
More information about the Squeak-dev
mailing list
|