TofuShell

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TofuShell

Jerome Chan
<http://radio.weblogs.com/0103167/Smalltalk/TofuShell.zip>

I've made a class called TofuShell based on my experiences trying to
save the state of a window. This class automatically saves the state and
position when the ShellView is closed and loads the state and position
when the ShellView is opened. The data is stored in the registry under
HK_CURRENT_USER\Software\TofuSoft\WindowPositions\<appName>\<symbol> as
a serialized Dolphin Smalltalk Object. This class was inspired by the
Objective-C Window Cocoa class under MacOS X.

In order to use TofuShell, you just do the following.

TofuShell show: resourceViewName on: aModel withSymbol: #aSymbol
or
TofuShell showOn: aModel withSymbol: #aSymbol

Normally, I would sub-class my Shell from TofuShell.

Feel free to give me feedback on this class.