It seems Smalltalk implementations misses an algorithm which return all the indices of a substring in a String. The most similar ones returns only one index of an element, for example : firstIndexesOf:in: , findSubstring:, findAnySubstring:…
I want to split a String in Pharo 4. My input is
'a %% b %% c %%% d %% e %% f'
and I want to get
#('a %% b %% c' 'd %% e %% f')
thus the separator is ' %%% '
In Dolphin 7 it works nice:
'a %% b %% c %%% d %% e %% f' subStrings: ' %%% '
#('a %%…
I want to create a reusable toolbar that handles its own commands. Unfortunately, Toolbar overrides #commandSource to treat the topShell as the commandSource. I'd like to have the parentView be the commandSource instead. To do this I've created a…
I'd like to perform a specific action just before/after a class is removed from system (from SystemDictionary) - like unregistering the class from a certain list/dictionary of well known classes.
In Visualworks and Squeak/Pharo, I just have to…
I am writing classes in Pharo Smalltalk, but I assume the question is valid for other Smalltalk implementations.
I know a way to enforce instances with specific attributes is to provide a class method for instance creation, and then suggesting to…
I need to generate all the possible combinations of N numbers including repetitions.
Problem input: I have N cells where I can put one number in the interval 0 to: 9, in each cell.
Wrong solution (with N = 4):
(0 to: 3) permutationsDo: [ : each |…
I've created a small (test) addition to the Dolphin Smalltalk framework
that I want to submit on GitHub later. (1 method: Integer>>isPrime)
But first, I want add my testing method of this method to the standard regression test set, with ~ 2400 tests…
We had no problem with an older version (TeeChart.TChart.7) but recently we installed TeeChart.TChart.10 and started to have an issue in our runtime application. Our problem is that whenever we click in any TeeChartView in the application there is a…
In Dolphin Smalltalk I've set a context menu on a treeview, but this menu appears whenever I right click everywere on the tree, even if I click on an empty space.
How can I limit the popup to only existing rows of the tree ?
Best regards.
Maurizio.
In my Dophin Class browser I see that the Instance/Class radio buttons have their text splitted in two rows, as you can see in the attached image.
What can I do about it ?
Maurizio.
In a Dolphin smalltalk treeview I'd like to use a custom icon, depending on the state of the item displayed, (differente state, different icon)
How can I do that ?
I cannot really understand how to use a "my" icon.
I've create a class "connection",…
I'm trying to use a 3rd party DLL (WinSCP .NET assembly) in Dolphin 6.1b2. I've registered the DLL and generated a TypeLib in Windows 7.
In Dolphin I successfully used the component wizard to generate the interfaces but when I try to register the…
I'm working my way to become more familiar with seaside on dolphin. I have successfully completed the todo app. Now I have started my own app using the todo app as a guide.
I am getting walkback (see below) in the session start. I have set my app up…
I have a treeview showing different kinds (classes) of objects.
When I right-click on an object, I'd like to show a popup menu with specific to the object class. How can I do that?