Hi,
Grant Rettke a écrit :
May someone who is or has done GUI development in Squeak recently, may
you please recommend the best way to go about implementing a GUI app?
The swiki is information packed, but I would like to get the
perspective of a human being on this one.
you may want to have
Hi !
Actually it is probably a very simple Squeak concept which I haven't
understood, yet.
Serving as an simple example, I would like to write a method, which accepts a
Class as argument and which return the Superclass of that Class.
The problem is that the argument must be an instance of
Hello Warakorn,
try:
Smalltalk at: #MonthMorph inspect
Cheers
Herbert mailto:[EMAIL PROTECTED]
WP Hi !
WP Actually it is probably a very simple Squeak concept which I haven't
understood, yet.
WP Serving as an simple example, I would like to write a method,
WP which accepts a Class as
A better alternative would be
Smalltalk classNamed: 'Object'
avoiding the low level #at: and #asSymbol protocol. Does some more
checks, too.
- Bert -
On Jan 16, 2007, at 14:33 , Herbert König wrote:
Hello Warakorn,
HK try:
HK Smalltalk at: #MonthMorph inspect
I got some more
This doesn't work either, because again (Smalltalk at: aClassName) is returning
just a ByteString but not (e.g.) Object classor (e.g.) ClassBuilder
class .
Lets assume in the calling method is written:
returnSuperClass: '#Object'.
Note: the Argument must be an instance of String.
What makes you think it does not return a class object? It does.
But note that you have to use a symbol (#Object) not a String
('Object') when you use #at:. Of course. '#Object' does not make any
sense. If you use #classNamed:, both a String and a Symbol will work.
- Bert -
On Jan 16,
I guess there's no mouse button for this in MVC?
If you are using the mouse anyway, what is wrong with a simple drag? Did you
try to double-click items such as a word or at the beginning of a line or at
the end (bottom) of all the text?
Mark
___
Hello Warakorn,
WP This doesn't work either, because again (Smalltalk at:
WP aClassName) is returning just a ByteString but not (e.g.)
WP Object class or (e.g.) ClassBuilder class .
Copied from a Workspace:
(Smalltalk at: 'MonthMorph' asSymbol) superclass inspect
This returns an
Mark Bailey-5 wrote:
I guess there's no mouse button for this in MVC?
If you are using the mouse anyway, what is wrong with a simple drag? Did
you try to double-click items such as a word or at the beginning of a line
or at the end (bottom) of all the text?
Mark
Bert Freudenberg-2 wrote:
Now, I just tried MVC in a 3.9 image on the Mac, and it is seriously
broken, I saw freezes, sluggishness, missed clicks etc. Looks like
nobody has ventured into these fields for a while.
- Bert -
Ditto here under XP, which answers my question, but
Dear All --
I need your help. I'm teaching my 10 year-old niece eToys. I'm
running a Squeak version in FreeBSD that has Wonderland, but on our
Macintosh, on version 3.9, we can't find Wonderland.
We're using the computers sort of like in a class, side by side, so
it would be nice to synchronize
The method Object#class does what you want. Since it is defined on
Object you can send the message to any object, including a string.
returnSuperClass: aClassName
|aSuperClass|
aSuperClass := aClassName class superclass.
^ aSuperClass.
The above method body could be a one liner:
Doh! Sorry, didn't read carefully (or the whole thread).
Bert is right:
Smalltalk classNamed: 'Object'
On 1/16/07, David Mitchell [EMAIL PROTECTED] wrote:
The method Object#class does what you want. Since it is defined on
Object you can send the message to any object, including a string.
On Jan 16, 2007, at 19:57 , Henry Lenzi wrote:
Dear All --
I need your help. I'm teaching my 10 year-old niece eToys. I'm
running a Squeak version in FreeBSD that has Wonderland, but on our
Macintosh, on version 3.9, we can't find Wonderland.
It might be simplest to copy the .image file
Hi all,
It's the beginning of this semester and we, at university are starting
some courses using Squeak. The first one will start this Friday and will
have a month of duration. I was talking today with the people who will
take the course and they expressed their interest specially in the
15 matches
Mail list logo