[Q][Morphic] ProjectView open: Project newMorphic. does not work in Workspace

Scott Wallace scott.wallace at squeakland.org
Wed Dec 22 22:39:57 UTC 2004


Hi, Hannes,

The code in question, which dates back to the dawn of morphic 
projects, 7 years ago, was designed to be invoked from within an mvc 
project -- in particular, it assumes that the global variable 
ScheduledControllers will have an mvc "ControlManager" instance as 
its value, whereas in morphic projects that variable always has a nil 
value.

The expression *still* works as expected when evaluated, as intended, 
within a workspace in an mvc project.  (Note that "ProjectView" is an 
mvc "view".)

If you're within a *morphic* project and want to get a similar 
effect, evaluate "Project newMorphicOn: nil".

Cheers,

   -- Scott


At 4:46 PM +0100 12/22/04, hjh-sqlist at lexdb.net wrote:
>Hi
>
>In the class
>
>ScreenController
>
>I find the code
>
>openMorphicProject
>	Smalltalk verifyMorphicAvailability ifFalse: [^ self].
>	ProjectView open: Project newMorphic.
>
>Why can't I evaluate the following in a Workspace?
>     ProjectView open: Project newMorphic.
>
>Hannes




More information about the Squeak-dev mailing list