|
From: | Joachim Jaeckel |
Subject: | [Help-smalltalk] Newbie warning! (my first smalltalk gui object) |
Date: | Sun, 18 Apr 2004 23:11:38 +0200 |
Hello all,
I tried to code my first object in gnu-smalltalk
and run into something, which I don't understand.
I tried to create a gui with the BLOX libs in the
following way:
the object I created looks like this:
Smalltalk addSubspace: #Joe!
Namespace current: Joe!
Object subclass: #JoeTest
instanceVariableNames:
'window'
classVariableNames:
''
poolDictionaries:
''
category: ''!
!JoeTest methodsFor: 'actions'!
new
super new.
PackageLoader fileInPackage:
'Blox'.
self init.
^self
!
init
window := BLOX.BWindow
new
!
show
window map
!!
Namespace current: Smalltalk!
I "filed in" this code and tried to use it through
the following statements:
Smalltalk at: #x put: 0!
x := Joe.JoeTest new!
x show!
but then I everytime get the error message, that my
object doesn't understand the message 'show'. But the Namespace-Inspector shows
my Object in the Namespace 'Joe' with all of the associated
methods.
If I tried it directly, without creating an object,
like the following, everything works fine:
Smalltalk at: #x put: 0!
PackageLoader fileInPackage: 'Blox'!
x := BLOX.BWindow new!
x map!
Do you have an idea, what's wrong with my
code?
Could you suggest a book for a smalltalk
newbie?
And: Is it possible to get a gnu-smalltalk binary
for windows with Tk-Support?
(And I'm sorry, but how do I have to subscribe to
this mailinglist?)
Thanks in advance,
Joachim.
|
[Prev in Thread] | Current Thread | [Next in Thread] |