Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!unido!laura!exunido!baumeist From: baumeist@exunido.uucp (Hubert Baumeister) Newsgroups: comp.lang.smalltalk Subject: Re: Switches in 3D !! Summary: bug in example Keywords: SwichView 3D bug Message-ID: <1664@laura.UUCP> Date: 10 Oct 89 13:38:14 GMT References: <26675@prls.UUCP> Sender: news@laura.UUCP Reply-To: baumeist@exunido.UUCP (Hubert Baumeister) Organization: University of Dortmund, W-Germany Lines: 78 In article <26675@prls.UUCP> pieter@prls.UUCP (Pieter van der Meulen) writes: > > ... >The Switch3DView, a subclass of SwitchView, adds 3D effects to >Switches. > ... Did you think no one would use the code that is posted here? :-) Your example creates an old SwitchView instead of a new Switch3DView. In >!Switch3DView class methodsFor: 'examples'! > >restoreDisplayView the line > aView _ SwitchView new model: aSwitch. should read: aView _ Switch3DView new model: aSwitch. and even better (because this will work for subclasses of Switch3DView too): aView _ self new model: aSwitch. Hubert Baumeister (baumeist@exunido.uucp huba@unidoi5.uucp) Newsgroups: comp.lang.smalltalk Subject: Re: Switches in 3D !! Summary: Expires: References: <26675@prls.UUCP> Sender: Reply-To: baumeist@exunido.UUCP (Hubert Baumeister) Followup-To: Distribution: Organization: University of Dortmund, W-Germany Keywords: SwichView 3D Newsgroups: comp.lang.smalltalk Subject: Re: Switches in 3D !! Summary: bug in example Expires: References: <26675@prls.UUCP> Sender: Reply-To: baumeist@exunido.UUCP (Hubert Baumeister) Followup-To: Distribution: Organization: University of Dortmund, W-Germany Keywords: SwichView 3D bug In article <26675@prls.UUCP> pieter@prls.UUCP (Pieter van der Meulen) writes: > > ... >To show how simple this is, I included an example for ParcPlace >Smalltalk-80 V2.3 (but will probably also work for other versions). > >The Switch3DView, a subclass of SwitchView, adds 3D effects to >Switches. > ... Did you think no one would use the code that is posted here? :-) Your example creates an old SwitchView instead of a new Switch3DView. In >!Switch3DView class methodsFor: 'examples'! > >restoreDisplayView the line > aView _ SwitchView new model: aSwitch. should read: aView _ Switch3DView new model: aSwitch. and even better (because this will work for subclasses of Switch3DView too): aView _ self new model: aSwitch. >--------------------------------------------- >P.S. van der Meulen, MS 02 prls!pieter >PRLS, Signetics div. of NAPC ----------- >811 E.Arques Avenue, Sunnyvale, CA 94088-3409 Hubert Baumeister (baumeist@exunido.uucp huba@unidoi5.uucp)