First, please forgive me if this is a F.A.Q., but I can't seem to find any search<br>facility for this email list. (Is there one? Where??)<br><br>I last used Smalltalk about 20 years ago, and now I'm trying to port that old MVC<br>
program to Squeak 4.1 under Windows Vista 32-bit (though "Display version information"<br>in VM Preferences says it is 4.0.2 rather than 4.1).<br><br>I've run into lots of frustrations with the Squeak user interface, documentation, etc.,<br>
but I've muddled through. After fixing various obsolete methods, my program seemed<br>to run right up to the point where it sent the open message to the controller. Then it<br>died on the last line of the open method for StandardSystemController.<br>
<br>That method is very short:<br><br>open<br> "Create an area on the screen in which the receiver's scheduled view can <br> be displayed. Make it the active view."<br><br> view resizeInitially.<br>
status := #open.<br> ScheduledControllers scheduleActive: self<br><br>It dies sending the scheduleActive: message to class ScheduledControllers.<br>When I try to step "Into" the method using the debugger, it goes directly to<br>
UndefinedObject(Object)>>doesNotUnderstand: #scheduleActive:<br><br>self is a StandardSystemController.<br><br>The class ScheduledControllers isn't even visible in the Browser.<br><br>What on earth is going on? How can the StandardSystemController's open method<br>
be sending a message to an undefined class?!?<br><br>I found a discussion of this problem on the web at <br><a href="http://objectmix.com/smalltalk/16883-mvc-example-squeak.html">http://objectmix.com/smalltalk/16883-mvc-example-squeak.html</a><br>
and it seems that Squeak doesn't work with MVC programs unless you explicitly<br>open an MVC project.<br><br>Well, okay, but how hard would it have been to just put a proper error check and<br>helpful message into the open method of StandardSystemController?<br>
<br>So I did Projects -> New Project -> New MVCroject, and I got a blank screen,<br>with nothing on it at all. Any of the 3 mouse buttons brings up the same<br>very short menu.<br><br>Since the 3 mouse buttons all do the same thing, I wondered if the Mouse<br>
preferences might be wrong, but I've verified that "3 button mouse" is<br>selected in VM Preferences. (I experimentally tried setting it to "1 button<br>mouse" or both or neither, but nothing made any difference.)<br>
<br>That menu was pretty opaque, but finally I managed to Open Browser. But<br>the System Browser looks bad (it's missing the "class" button, for instance).<br><br>When I tried to open file list, the whole Squeak system froze. (Well, the<br>
mouse cursor moves, but none of the mouse buttons do anything; I had to kill<br>it with Process Explorer.)<br><br>I restarted and tried Open -> file...<br><br>This was a little better -- it tried to paint a file browser, but failed<br>
for the most part. Rolling the mouse wheel up and down revealed some file<br>names, but nothing would make it do anything with those files.<br>It painted a big red ugly "accept" button, which I tried clicking, but the<br>
whole Squeak system just froze again.<br><br>So... is Squeak unusable for MVC programs? Or is there some trick that<br>I don't know?<br><br>Dave<br><br>