pharo Questions
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 ...
2
Solved
I'm looking at this form an Objective-C background so be gentle. The experiment looks like this:
Object1 has an instance variable named delegate.
Object1 receives a message and the proceeds to ch...
3
Solved
I have downloaded the pharobyexample.org ebook, but it seems out of sync with the latest release of pharo, also I would like to know about resources which can help me learn smalltalk.
2
Solved
Searching for the call of a FileDialog
I would like to ask the user for a file name in Pharo 4.0
Through the spotter I found class
FileDialogWindow
with a method
answerFileName
Looking for the ...
1
Solved
This question is related to How do I ask the user for a file name?
The issue of 'Standard dialogs'.
How do I call a Yes / No / Cancel dialog and how to I call an alert in Pharo 4.0?
1
Solved
TabularResources testExcelSheet
from this project gives me a binary representation in a literal array of an Excel file.
````
testExcelSheet
^ #[80 75 3 4 20 0 6 0 8 0 0 0 33 0 199 122 151 144...
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-...
1
Solved
Could someone please explain the process of double dispatch in Pharo 4.0 with Smalltalk? I am new to Smalltalk and am having difficulty grasping the concept, since it is implemented very differentl...
Malpractice asked 15/6, 2015 at 17:56
2
Solved
I am learning Pharo online and am not sure if I got the syntax correct for creating class and instance variables. Please correct me if I am wrong :-
Class (Static) method created on class side of ...
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 ?
3
Solved
I'm trying to parse a command and an int to make a "turtle" move on a board. I'm a bit overwhelmed, since it's not throwing an exception, and I can't even figure out how to open the debugger withou...
Ruling asked 28/5, 2015 at 9:6
1
Solved
It's been a while since I've dabbled in Seaside, and, wanting to play around with it again for a small project, I downloaded the one-click image for Pharo and thought I'd look through the documenta...
1
Solved
One of the things I was most impressed with when digging into Pharo was that the Finder could do find-by-example. I'd previously only seen this in languages like Haskell, where it's possible to kno...
2
Solved
So I have a non-Ajax callback working fine using this code (the 'convert' method calculates a new value for the 'result' instance variable):
html form: [
html text: 'Number to convert: '.
html ...
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
...
2
Solved
I remember seeing a method somewhere that actually allowed only letters 'Uppercase', 'lowercase', numbers and the underscore in the name, but I can't find it again for the life of me.
Are any othe...
1
Solved
Pharo Smalltalk - Message forwarding, is it possible to intercept a message and redirect it to another Object (instance)?
In Objective-C there's forwardInvocation: that gets called right before an...
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
Solved
I'm new to Pharo ,my problem is when I try to run the BouncingAtomsMorph openInWorld example I keep getting the following error message:
Unknown variable:BouncingAtomsMorph openInWorld please co...
Amrita asked 4/10, 2014 at 21:42
2
Solved
I am a begginer with Pharo, and I have learnt about Monticello and Metacello.
As far as I understand, Pharo not being file-based means that one cannot use common source control tools such as Git d...
Verdellverderer asked 8/9, 2014 at 10:34
1
Is there a way to make Roassal draw an edge from one node to itself?
I looked at a bunch of the examples and I cannot find any that does that, and simply adding an edge in the source code produces...
Jersey asked 2/9, 2014 at 14:21
2
Solved
Yesterday I was about 2 hours in to working on my Pharo image when I accidentally wrote some code and executed it that caused an infinite loop -- actually, I was calling one method from another met...
3
Solved
In Pharo, I know that integers understand the message to:. The workspace offers suggestions:
But if I inspect an integer from the workspace, it doesn't mention to::
Searching for SmallInteger...
Immobilize asked 5/6, 2014 at 21:16
3
Solved
I have an object myObject and I'm not sure who's holding references to it. (I want to know because I'm reverse engineering something.)
I found the button "Objects pointing to this value" in the in...
Ningsia asked 17/11, 2011 at 8:56
2
Solved
Reading the documentation of Pharo (Pharo By Example) the first difference is in the way that arrays are made.
A literal will follow this syntax
myArray := #(1 2 3)
while a dynamic array with
...
© 2022 - 2024 — McMap. All rights reserved.