[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: Newbie warning! (my first smalltalk gui object)
From: |
Paolo Bonzini |
Subject: |
[Help-smalltalk] Re: Newbie warning! (my first smalltalk gui object) |
Date: |
Mon, 19 Apr 2004 09:12:42 +0200 |
new
super new.
PackageLoader fileInPackage: 'Blox'.
self init.
^self
!
init
window := BLOX.BWindow new
!
new must go in a *class* method. The Blox package must be loaded before the
method is defined, otherwise init will not get the BLOX namespace.
So,
PackageLoader fileInPackage: 'Blox'!
Object subclass: #JoeTest
instanceVariableNames: 'window'
classVariableNames: ''
poolDictionaries: ''
category: ''!
!JoeTest class methodsFor: 'instance creation'!
new
^super new init; yourself
!
!JoeTest methodsFor: 'actions'!
init
.......
!
........
To subscribe, go to http://mail.gnu.org
Paolo