Get PracticalSmalltalk Using Smalltalk V Shafer Ritz PDF

By Dan Shafer, Dean A. Ritz

ISBN-10: 038797394X

ISBN-13: 9780387973944

Show description

Read Online or Download PracticalSmalltalk Using Smalltalk V Shafer Ritz PDF

Best electronics: radio books

Download e-book for iPad: Marie Curie and the science of radioactivity by Naomi Pasachoff

Examines the lifetime of the Polish-born scientist who, along with her husband Pierre, used to be offered a 1903 Nobel Prize for locating radium.

Download e-book for kindle: Radar Made Easy by Mikhail K. Razmakhnin

At the present time, radar in a single shape or one other is probably going to show up far and wide: on the street, on the waterfront, in an underground motor-road. by means of some distance the widest use of radar is made by means of the army and scientists. In all of those fields millions upon hundreds of thousands of radar units are at paintings. a few of them are sufficiently small to be outfitted into spectacles, others weigh 1000's of plenty.

Additional resources for PracticalSmalltalk Using Smalltalk V Shafer Ritz

Example text

This is because any changes you make here will have system-wide effects. ) Be sure to keep your Workspace intact while you complete this chapter. It might be a good idea to save your image at this point. We'd recommend that you then re-label the Workspace (call it "Prioritizer" or something else you'll associate with this program), then collapse it out of your way. During initial program development, many Smalltalk programmers find they keep several Workspace windows around their desktops. Demo Menu Modification Let's first add our prioritizer application to the Smalltalk/V 286 Demo menu.

We will therefore use an instance of class Set. If we simply define a new local variable to hold the accumulating list of objects and then modify our earlier listing to include the ability to keep adding to this set, we will encounter an obvious problem: how do we get the process to stop? As you can see, we have already anticipated that we need a way for the user to indicate that the last entry has been made. , press the Enter key without entering any text — as a signal that the list is complete.

Open the Class Hierarchy Browser and select the class DemoClass. Notice that it has an instance method called demoMenu. We're going to modify this menu so that it shows our Prioritizer and runs it when the user picks the new menu option. Adding the Prioritizer to the menu is simple. Here is what the demoMenu method looks like before we begin working on it: demoMenu "Answer the menu for the receiver. " AMenu labels: (' exit\dragon\mandala\multi mandala\ ', 1 multi pentagon\multi spiral\bouncing ball') withers.

Download PDF sample

PracticalSmalltalk Using Smalltalk V Shafer Ritz by Dan Shafer, Dean A. Ritz


by Ronald
4.3

Rated 4.98 of 5 – based on 25 votes