[BUG] MVC System Browser Problems

Dean_Swan at Mitel.COM Dean_Swan at Mitel.COM
Thu Oct 28 19:14:57 UTC 1999


>=> 10/28/99 12:25:25 PM EDT, Dean_Swan at Mitel.COM =>
><< Under MVC, it seems that the System Browser is quite broken with respect
>to adding new classes, methods, and method categories, all of which seem to
>work fine in a Morphic project. >>
>
>I assume you're talking about 2.6. Right? (For once I'm up to date).
>


     Actually, I was using 2.5, but I just checked, and 2.6 has the same
problems.


>What is your platform? The Browser in MVC seems to be running okay for me on
>Windows'95.
>

     I've seen this on Win95, WinNT, and MacOS 8.6.  On the Mac I was using
Squeak 2.4. On both Windoze machines I was using 2.5, but the problem still
exists in 2.6.

>Do you have a specific test that will demonstrate the problem? I would be
>glad to run it in my environment to try and isolate whether this is a
>platform specific bug.
>

Here's what I did:

1) In the source editing pane of a system browser (in the default MVC project),
type:

     CursorWithMask subclass: #SoftwareCursor
          instanceVariableNames: 'saveForm savePoint '
          classVariableNames: ''
          poolDictionaries: ''
          category: 'Graphics-Display Objects'

2) 'accept' it. (i.e. 'accept' from pane menu, or Alt-s or Cmd-s (Mac)).

     This should add the 'SoftwareCursor' class to the class list, and set the
browser to 'Graphics-Display Objects' with 'SoftwareCursor' as the current
class.  It doesn't.  It appears to do nothing.

3) Open a system browser in a morphic project.

4) Repeat steps (1) & (2) in the browser in the morphic project.  It works as
expected.


5) Switch back to the MVC project, close the system browser, and open a new one.

6) Select 'Graphics-Display Objects' in the class category pane,
'SoftwareCursor' in the class pane.  In the method category pane, select 'add
item' from the pane menu.  From the next menu pick 'testing'.

7) In the source code pane, replace the 'message selector and arguments' line
with 'display'.  Select the whole contents of the pane and 'accept' it from the
pane menu or 'save' with Alt-s.

     This should complain about 'statements' is undefined, 'declare as
temporary' or 'cancel'.  It doesn't do this.

8) Swithc back to your morphic project, select a different class, the reselect
'SoftwareCursor' so the browser gets the added method category.

9) Select the 'testing' category.

10) Replace the 'method selector and arguments' line with 'display'.

11) Select the whole contents of the pane and 'accept' it.

     Everything works as expected from this point on.


>Jerry Archibald
>systemObjectivesIncorporated





More information about the Squeak-dev mailing list