Questions tagged [dolphin-smalltalk]

A Windows based Smalltalk from Object Arts

A Windows based Smalltalk from Object Arts

http://object-arts.com/dolphin7.html

open-sourced at:

15 questions
5
votes
2 answers

Indices of a substring in Smalltalk

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:…
user1000565
  • 927
  • 4
  • 12
4
votes
1 answer

findTokens: in Pharo versus Dolphin Smalltalk

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 %%…
user1000565
  • 927
  • 4
  • 12
4
votes
0 answers

Toolbar>>#commandSource in Dolphin Smalltalk

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…
James Foster
  • 2,070
  • 10
  • 15
4
votes
1 answer

How to perform a specific action when a class is removed from system in Dolphin

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…
aka.nice
  • 9,100
  • 1
  • 28
  • 40
3
votes
2 answers

Required attributes in Smalltalk

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…
user1000565
  • 927
  • 4
  • 12
3
votes
2 answers

Combinations WITH repetitions in Smalltalk

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 |…
2
votes
1 answer

How to create an SUnit test in Dolphin Smalltalk?

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…
1
vote
1 answer

Error loading type library/DLL (TeeChart.TChart.10)

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…
1
vote
1 answer

Limiting context menu

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.
1
vote
1 answer

How to fix incorrect radio button size in Dolphin class browser?

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.
1
vote
3 answers

How to use a custom icon in a dolphin smalltalk treeview?

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",…
1
vote
1 answer

WinSCP .NET assembly registration error in Dolphin Smalltalk

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…
Duetto
  • 9
  • 3
0
votes
0 answers

walkback - seaside decorator isNil at startup

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…
Duetto
  • 9
  • 3
0
votes
1 answer

Why magenta colored methods name in class browser method panel?

Why do some method have their name colored in magenta in the class browser method panel ?
0
votes
1 answer

How can I assign a different popup menu to every reeview item class?

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?