Questions tagged [squeak]

Squeak is a modern, open-source implementation of the Smalltalk language, with a history of being very easy to port across platforms. See https://squeak.org/.

Squeak started in 1996 as a project of Alan Kay and friends at Apple. They wanted an open source Smalltalk with a view to building Smalltalk's replacement.

Among its features:

  • The Virtual Machine is written in (a subset of) Smalltalk.
  • Runs bit-identically across all its platforms.
  • Very easy to port: it runs on Linux, Macs (both old and new), Windows, iPhones, iPads, and even bare metal.
412 questions
1
vote
1 answer

Squeak - How do I move a circle?

In the Squeak Smalltalk environment, I am trying to learn Morphic. There are many, many Morphic classes and I cannot determine the most appropriate one(s) to use for my current application, and I prefer not to invent anything that already exists at…
RAL
  • 917
  • 8
  • 19
1
vote
2 answers

Squeak String array and iteration

I've created a subclass of Array and written some messages for it that have worked out well so far. However, I'm now having trouble with my last message Here's the body of my code: startString: charToTest "Returns a list of all the words that start…
Ryanman
  • 880
  • 1
  • 8
  • 20
1
vote
2 answers

Initialize an object with an array

I was going through (using Squeak) the Discovering Better Code: Bowling for Smalltalk Series by Ron Jeffries and I can't get pass through the third article. A new class (called Frame) is being created which takes an array as an argument in the…
Marcin Białoń
  • 590
  • 4
  • 10
0
votes
1 answer

How to, in SmallTalk, programmatically resize the tableinterface column sizes dynamically?

I have a table that I am dynamically populating, and so, I do not know hoa many columns are in my table but I would like to resize as needed.
Kobojunkie
  • 6,375
  • 31
  • 109
  • 164
0
votes
1 answer

Squeak Circle Section

I'm trying to draw a quarter of a circle with Morphic in Squeak-Smalltalk. How does it work? Thanks in advance!
Janus
  • 309
  • 1
  • 5
  • 18
0
votes
1 answer

How to close / delete a Morph in Squeak?

Let's say I have a new Morph: m := Morph new. m openInWorld. How do I close / delete the Morph off? m removeFromWorld.
avivgood2
  • 227
  • 3
  • 19
0
votes
2 answers

Is it possible to demand load jars into a running java process? Are there frameworks for this?

In the attempt to design & implement & test a distributed capabilities system, Remote Promises[1][2][3], bit identical between Squeak & Java, there are shortcomings. I am seeking work-arounds. With Remote Promises, proxies can change state, which…
rabbit
  • 111
  • 9
0
votes
2 answers

Image is hanging, what next?

I was following the tutorial on Magma from the awesome Seaside book and at one point my image got stuck completely. I was in the debugger at that moment and I've tried to run "inspect it" on ToDoDB root part of the following snippet: ToDoDB…
Dima Sabanin
  • 118
  • 2
  • 5
0
votes
2 answers

Example of hiding mechanism in Squeak, similar to C++

I was wondering if it's possible to achieve the Hiding mechanism in Squeak, similar to the one in languages like C++ and C#, where its one of the main features. I know that I can override methods in Squeak and that I can't overload methods because…
vesii
  • 2,760
  • 4
  • 25
  • 71
0
votes
1 answer

how can I set a breakpoint in squeak code?

Hey, friends, Squeak is powerful, I knows that the Debugger in squeak played a central role, now I wanner to set a breakpoint in squeak code, should be self: halt, My problem is that how can I quickly trace into the code-piece where I set an…
parsifal
  • 879
  • 4
  • 12
  • 21
0
votes
1 answer

Squeak-5.2 can't connect to https://github.com/

To repeat: install Squeak-5.2 on Windows (I used Vista because it's what I have) Open up a Workspace, type: WebClient httpHead: 'https://google.com/' and highlight the expression, hit Alt-P to print the result (it should return a normal HTTP/1.1…
0
votes
2 answers

How can I parse character in a File in Squeak4.1?

friend, suppose I have a file test.txt, the content of file is "1+2*3", if the fomular directly expressed in Squeak's Workspace, print it will result 9, What I want to get is 7 then I read the file content 1+2*3 from a file. code like this and it…
parsifal
  • 879
  • 4
  • 12
  • 21
0
votes
2 answers

where can I read the source code?

I am using squeak4.1 for development, when I am looking up add method in method chain below: Kernel-Numbers -> Integer -> arithmetic -> + ,the method for adding is +, in + method I find sample code like this : ifTrue: [^ (self digitAdd: t1)…
parsifal
  • 879
  • 4
  • 12
  • 21
0
votes
1 answer

Squeak which selector sets rotation of TextMorph?

I can rotate a TextMorph in Morphic but cannot find the method for rotating it. I want to use it during initialization.
0
votes
3 answers

Does sample code exist for Squeak Smalltalk?

can anybody give some hints on squeaksource or things like that, they can provide mcz sample code focuse on simple add, reduce, multiplication, division calculation?
parsifal
  • 879
  • 4
  • 12
  • 21