29.11.2014 Views

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

interface builder would be unable to create the user interface window (this is actually a common<br />

mistake even for those used to the VisualWorks system).<br />

Figure 27.11: Initializing <strong>an</strong> application model<br />

The remainder of the method in Figure 27.11 c<strong>an</strong> then initialize the appl ication specific aspects of<br />

the subclass of ApplicationModel. In this case it initializes <strong>an</strong> inst<strong>an</strong>ce variable called toDoList<br />

<strong><strong>an</strong>d</strong> a value holder 15 on a string for <strong>an</strong> inst<strong>an</strong>ce variable entry. Finally it constructs the selection list<br />

displayed on the left h<strong><strong>an</strong>d</strong> side of Figure 27.12 <strong><strong>an</strong>d</strong> stores it in the todoTable inst<strong>an</strong>ce variable.<br />

Figure 27.12: The working interface<br />

27.8 Resource Finder<br />

The Resource Finder (also known as the Finder) is a navigation aid for developers. It is intended to help<br />

developers to find, edit, delete <strong><strong>an</strong>d</strong> execute resources such as windows <strong><strong>an</strong>d</strong> menus. Figure 27.13<br />

illustrates the VisualWorks Finder. The left h<strong><strong>an</strong>d</strong> selection windo w presents application classes, while<br />

the right h<strong><strong>an</strong>d</strong> selection window indicates the resources defined for the selected application class. There<br />

are various filter options which c<strong>an</strong> be used to reduce the number of application classes displayed. The<br />

filters c<strong>an</strong> be accessed by selecting the classes sub-menu from the view menu.<br />

Figure 27.13 illustrates the resources defined for the VisualLauncher class (the class which is<br />

used to display the VisualWorks Launcher window). As c<strong>an</strong> be seen from this example, <strong>an</strong> application<br />

c<strong>an</strong> have more th<strong>an</strong> one window specification (in this case it has two: windowSpec - the default<br />

window specification <strong><strong>an</strong>d</strong> aboutDialogSpec). If when one of these is selected the user selects the<br />

15<br />

We will come back to value holders later in this chapter.<br />

230

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!