squeak Questions
2
In Squeak, is it possible for a GUI program to have multiple windows? For example, if I am making a painting application, is it possible for the "paint palette" and the "canvas"...
3
I was just wondering if there is a way to work with multiple screens in Pharo or Squeak. I am just switching from VisualWorks to Pharo and am really missing this feature. I am used to having my wor...
Unhand asked 20/12, 2012 at 23:12
2
I am new with Squeak Smalltalk. How I can catch a button click event and execute some code when the button is clicked.
I tried this code but it doesn't work!
I created a new Button Class:
Simple...
6
Solved
How can you invoke shell commands from Squeak and Pharo? Do these environments have anything in them like the system() function in certain unix languages to run external shell commands, or the back...
1
Solved
I know that the implementation signals a MessageNotUnderstood exception, but how does that end up opening a debugger?
4
Solved
i want to do something like this: Transcript show: '\n'. how?
3
In many languages you can do something like the following:
while true:
handle events like keyboard input
update game world
draw screen
(optional: delay execution)
while this is far from opti...
2
Solved
Writing a bit of documentation for beginners and I've come against a problem. Knowing what binary messages do, doesn't mean you know what they're called!
Some obvious ones, and their respect...
3
Solved
I'm writing an FFI interface for an existing library (written in C).
The library uses a good number of opaque structures, so I defined a few ExternalStructures (with no fields) to use as void*.
N...
1
Solved
I'm new using Pharo and I'm trying to iterate over an OrderedCollection, but starting from the end.
For example:
| c |
c := OrderedCollection new.
c add: (1).
c add: (2).
c add: (3).
c do: [ :eac...
1
Solved
I'm quite new to Smalltalk and I've been searching a whole day how I could write a GUI. I've found loads of information on how to work with Morphs and what Halos are, but I don't seem to be able to...
Rickart asked 22/12, 2015 at 19:58
2
Solved
In Smalltalk, there are two terms often found within a method body: self and yourself.
What is the difference between them?
Frazil asked 22/11, 2015 at 0:9
2
Solved
Some style-guides and idioms suggest that you should not mutate literal arrays, like in this case:
MyClass>>incrementedNumbers
| numbers |
numbers := #( 1 2 3 4 5 6 7 8 ).
1 to: numbers ...
1
Solved
How can I add a new item - Workspace openLabel: 'Workspace' - to the World-menu of Pharo 4.0 ? (What can I say... I prefer Workspace over the new what's-it-called. :-)
I've looked at several menu-...
2
Solved
I have a simple morph in squeak smalltalk.
I want to move it from x1,y1 to x2,y2 (animation) with 5 seconds (or 10 seconds)
is there a build in way to create animation in squeak smalltalk ?
2
Solved
Consider the following method in the Juicer class:
Juicer >> juiceOf: aString
| fruit juice |
fruit := self gather: aString.
juice := self extractJuiceFrom: fruit.
^juice withoutSeeds
...
4
Solved
Lots of languages have microframeworks for writing very tiny websites or web services, such as Flask for Python, or Sinatra for Ruby. On Squeak, there doesn't seem to be any equivalent; Iliad, Seas...
Epifocal asked 22/12, 2010 at 20:18
1
I posted this to the Squeak Beginners list too - I'll be sure to make sure any answers from there get here :)
I'm using Squeak 4.2 and working on the smalltalk end of a named pipe connection, whic...
Renfroe asked 9/1, 2014 at 15:23
2
Solved
How can I send a block and its argument to a method ? so the method receive the block and the block receives the argument and I run the block in the method iteslf...
1
How do you undo in squeak more than one time? I am using coglinux-VM, Squeak-Image 4.5 with Squeak source version 41.
I wrote some test code in my workspace window and want to undo more steps, but...
1
Solved
5
Is it OK to leave the [ and ] out for messages like at:ifAbsent: if you don't need a full block?
In Smalltalk (and specifically Pharo/Squeak) I want to know if it is OK to leave out the "[" and "]" for the argument to messages like at:ifAbsent: if you don't need a block, like this;
^ bookTitl...
Optics asked 1/2, 2014 at 10:38
2
Is there any current data visualization or 2-d plot package for smalltalk (squeak or pharo) platform?
something similar to d3js or processing.org, or maybe sdl support to draw lines/dots on the sc...
0
I am trying to understand the uses of both. Already I have seen stuff on the SmalltalkHub doesn't often build on Squeak but always seems to work with Pharo. What are the advantages now in 201...
5
All the tools that i searched are 2005 or 2006 and so i dont even dare to try those. I understand that morphic is ok , but i am looking for something like Morphic Designer.
http://www.youtube.com/...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.