Re: [Pharo-users] How to wrap text in labels?

2016-08-08 Thread Nicolai Hess
2016-08-08 12:27 GMT+02:00 Tommaso Dal Sasso : > Hello everybody, > > I was wondering, is there a way to wrap text inside a Morphic/Bloc label? > I am building a list of text elements, but I am not able to wrap the text > to match the width of the widget. > > For the moment I solved the issue by i

Re: [Pharo-users] generating function keys

2016-08-08 Thread Nicolai Hess
2016-08-08 19:39 GMT+02:00 Peter Uhnak : > Hi, > > how can one generate function keys? (F1 to F12) > > I've made a morph for testing > > ~~ > c := Morph subclass: #MyKeyMorph. > > c compile: 'handlesKeyboard: evt > ^ true'. > > c compile: 'ha

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Nicolai Hess
2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < offray.l...@mutabit.com>: > Hi, > > I have been fighting with this for several hours until now. I can't > understand how to manage change on selections on TreeModels with Spec, > which is really frustrating > > Here is what I have: > >

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Nicolai Hess
2016-08-10 19:12 GMT+02:00 Nicolai Hess : > > > 2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < > offray.l...@mutabit.com>: > >> Hi, >> >> I have been fighting with this for several hours until now. I can't >> understand how to m

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-10 Thread Nicolai Hess
2016-08-10 20:42 GMT+02:00 Nicolai Hess : > > > 2016-08-10 19:12 GMT+02:00 Nicolai Hess : > >> >> >> 2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < >> offray.l...@mutabit.com>: >> >>> Hi, >>> >>> I have been fi

Re: [Pharo-users] manipulating strings

2016-08-11 Thread Nicolai Hess
2016-08-11 7:30 GMT+02:00 stepharo : > Now I was really wondering how I could copy characters by characters > without relying on a stream to get a string from the correct size at the > end. > > In particular copyWithout: and friends only works either with one > subcollection or one elements and I

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-11 Thread Nicolai Hess
2016-08-10 21:03 GMT+02:00 Nicolai Hess : > > > 2016-08-10 20:42 GMT+02:00 Nicolai Hess : > >> >> >> 2016-08-10 19:12 GMT+02:00 Nicolai Hess : >> >>> >>> >>> 2016-08-10 19:05 GMT+02:00 Offray Vladimir Luna Cárdenas < >>>

Re: [Pharo-users] Problem with adding an instance variable to SmalltalkImage

2016-08-16 Thread Nicolai Hess
2016-08-16 15:11 GMT+02:00 Valentin Ryckewaert < valentin.ryckewa...@gmail.com>: > Hello everyone, > > when I try to add the instance variable foo to SmalltalkImage I get a > popup asking me "CompilerCLass is still used in code of class > SmalltalkImage. Is it okay to move it to undeclared" > It's

Re: [Pharo-users] Problem with adding an instance variable to SmalltalkImage

2016-08-16 Thread Nicolai Hess
is responsible ? > 2016-08-16 15:19 GMT+02:00 Nicolai Hess : > >> >> >> 2016-08-16 15:11 GMT+02:00 Valentin Ryckewaert < >> valentin.ryckewa...@gmail.com>: >> >>> Hello everyone, >>> >>> when I try to add the instance variable

Re: [Pharo-users] BlueInk formatting (line length) Pharo5

2016-08-18 Thread Nicolai Hess
2016-08-18 18:02 GMT+02:00 Davide Varvello via Pharo-users < pharo-users@lists.pharo.org>: > > > -- Weitergeleitete Nachricht -- > From: Davide Varvello > To: pharo-users@lists.pharo.org > Cc: > Date: Thu, 18 Aug 2016 08:59:30 -0700 (PDT) > Subject: BlueInk formatting (line length

Re: [Pharo-users] BlueInk formatting (line length) Pharo5

2016-08-19 Thread Nicolai Hess
Am 19.08.2016 9:05 vorm. schrieb "Peter Uhnak" : > > On Thu, Aug 18, 2016 at 10:50:41PM -0700, Davide Varvello via Pharo-users wrote: > > Date: Thu, 18 Aug 2016 22:48:44 -0700 (PDT) > > From: Davide Varvello > > To: pharo-users@lists.pharo.org > > Subject: Re: BlueInk formatting (line length) Phar

Re: [Pharo-users] Spec > TreeModel: Updating the tree selection after a deletion

2016-08-21 Thread Nicolai Hess
"{allItems . currentItem . index } inspect." > currentItem selected: false. > parentNode > highlightedItem: ((allItems at:(index+1)) > selected:true; > takeHighlight;yourself). > ] > ] >

Re: [Pharo-users] Browse scoped and new class Problem

2016-08-21 Thread Nicolai Hess
2016-08-21 19:50 GMT+02:00 Vitor Medina Cruz : > Hello, > > I have a bunch of packages into a group browse scoped. If I create a new > class inside of one of the packages the, the full browse updates correctly > to show the new class, but the browse scoped don't, I had to close it and > scope agai

Re: [Pharo-users] [Pharo-dev] [ann] GTExamples alpha

2016-08-25 Thread Nicolai Hess
2016-08-25 8:47 GMT+02:00 Tudor Girba : > Hi, > Hi Doru, some questions and feedback ( I am sorry for my tone or if this sounds negative, it isn't meant to be) > Over the last coupe of years Stefan Reichhart and the rest of the GT team > worked on an implementation of examples. The work is insp

Re: [Pharo-users] [Pharo-dev] [ann] GTExamples alpha

2016-08-26 Thread Nicolai Hess
/ci.inria.fr/moose/job/gtoolkit/5595/artifact/gtoolkit.zip > > Cheers, > Doru > > > > On Aug 25, 2016, at 11:40 PM, Tudor Girba wrote: > > > > Hi Nicolai, > > > > Thanks a lot for the feedback. Please let’s continue. See more inline. > > >

Re: [Pharo-users] Spec Label is Black on Dark theme

2016-08-30 Thread Nicolai Hess
2016-08-30 20:01 GMT+02:00 Brad Selfridge : > How does one change Spec labels so that they don't show as black on Dark > Theme but do show as black on standard Pharo theme? > > > Looks like ListModel should overwrite #defaultColor defaultColor ^ Smalltalk ui theme textColor But I am not sur

Re: [Pharo-users] Network System Settings

2016-08-31 Thread Nicolai Hess
Accept the change when editing the values. Am 31.08.2016 12:05 nachm. schrieb "bharath" : > Using Pharo 5.0 with default image. > > I tried configuring proxy settings(to access monticello repositories). As > part of this (via both Welcome window -> settings browser and Systems -> > Settings) >

Re: [Pharo-users] Spec / GT Inspector integration

2016-09-01 Thread Nicolai Hess
Hi Alistair, 2016-09-01 10:38 GMT+02:00 Alistair Grant : > If I have a CompositeModel which I want to display as a tab in a GT > Inspector, what should the inspector method look like? (I haven't been > able to find any examples in the image or on the web) > > I assume it should be something like

Re: [Pharo-users] No right-button menu in Inspector on a ByteString

2016-09-02 Thread Nicolai Hess
2016-09-02 8:25 GMT+02:00 Ben Coman : > ctrl-c, ctrl-v are working in Linux Pharo 60197 and also Moose 6.0, > but ctrl-b, ctrl-n, ctrl-m are not. > cheers -ben > I think it is not yet in. related discussion: http://forum.world.st/request-for-improvements-in-GTInspector-or-debugger-tp4910232p4910

Re: [Pharo-users] Spec Text Emphasis

2016-09-02 Thread Nicolai Hess
2016-09-02 15:29 GMT+02:00 Sean P. DeNigris : > Peter Uhnak wrote > > LabelModel has #emphasis: > > Another apparent bug: > LabelModel new > emphasis: #(struck); <--- doesn't work. It accepts #struck as a > valid option, but does not strike the text > label: 'struck'; >

Re: [Pharo-users] Spec: InputWidget question

2016-09-06 Thread Nicolai Hess
2016-09-06 23:14 GMT+02:00 Brad Selfridge : > I've been trying for several days to get the Spec InputWidget to work as > expected. I've been running the "example2" example. If you enter text in > the input field and press the "enter" key, then the input text is returned. > But, if you click the "

Re: [Pharo-users] Spec Text Emphasis

2016-09-09 Thread Nicolai Hess
2016-09-02 15:56 GMT+02:00 Nicolai Hess : > > > 2016-09-02 15:29 GMT+02:00 Sean P. DeNigris : > >> Peter Uhnak wrote >> > LabelModel has #emphasis: >> >> Another apparent bug: >> LabelModel new >> emphasis: #(struck); <--- does

Re: [Pharo-users] [Moose-dev] [ann] pillar support in gtinspector

2016-09-15 Thread Nicolai Hess
d in some class comment like that. But it is actually a more general formatting tag for "monospaced font" - we actually don't need to do code highlighting for this text, just use a monospace font resp. code font. > > > On Sep 6, 2016, at 4:56 PM, Nicolai Hess wrote: > &

Re: [Pharo-users] Pharo 3.0 Issue with instance variables

2016-09-22 Thread Nicolai Hess
2016-09-22 15:58 GMT+02:00 Pablo Frias : > Hi all, > > We are teaching Smalltalk at the Universtity of Cordoba, Argentina with > Pharo, but we are having the following issue. > Sometimes y in different workstations, we notice that when instantiating > an object and setting values using the accesor

Re: [Pharo-users] bug in debugger?

2016-09-28 Thread Nicolai Hess
2016-09-28 14:15 GMT+02:00 Usman Bhatti : > Hello, > > I have a strange error in my image that results in image start taking up > system memory and crashes when it attains the max. the VM can provide on my > machine (2Gb). I am working on Pharo 4.0 + Spec debugger. > > After some digging in the im

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-16 Thread Nicolai Hess
Am 16.10.2016 14:35 schrieb "CodeDmitry" : > > I define Magic as "An opaque abstraction or an abstraction you think is > opaque until you learn better.", to a beginner, everything is deeply > Magical. > > That said, much of Smalltalk's opaqueness is not due to the language, but > due to me being a

Re: [Pharo-users] Refactoring changed method

2016-10-19 Thread Nicolai Hess
2016-10-19 15:19 GMT+02:00 Vitor Medina Cruz : > Hello, > > While I was editing a method, if I do a rename temporary refactoring the > system rollbacks every change I did to the method in order to apply the > refactoring. Is that the correct behavior? Shouldn't It at least asks me if > I want to s

Re: [Pharo-users] Refactoring changed method

2016-10-19 Thread Nicolai Hess
onflicting-edits), or show a confirmation dialog as it (sometimes) does for chnages if the editor window has unsaved edits. > > On Wed, Oct 19, 2016 at 11:33 AM, Nicolai Hess > wrote: > >> >> >> 2016-10-19 15:19 GMT+02:00 Vitor Medina Cruz : >> >>> Hello, >

Re: [Pharo-users] Spec: scaling imageModels

2016-10-22 Thread Nicolai Hess
Fogbugz! Am 22.10.2016 3:08 nachm. schrieb "Matteo Bellotto via Pharo-users" < pharo-users@lists.pharo.org>: > > > -- Weitergeleitete Nachricht -- > From: Matteo Bellotto > To: Any question about pharo is welcome > Cc: > Date: Sat, 22 Oct 2016 13:07:21 + (UTC) > Subject: Re:

Re: [Pharo-users] What is the correct way to go around implementing a GUI feature in Pharo?

2016-10-23 Thread Nicolai Hess
2016-10-23 11:07 GMT+02:00 Stephan Eggermont : > On 23/10/16 06:53, CodeDmitry wrote: > >> Are there any good resources that teach how to go around doing stuff like >> this, or do I have to reinvent it myself by researching how Pharo GUI >> works >> internally, and figure out how to do this by suc

Re: [Pharo-users] The Ultimate Smalltalk Tutorial

2016-10-23 Thread Nicolai Hess
Am 23.10.2016 3:16 nachm. schrieb "Vitor Medina Cruz" : > > I think the MOOC is too much for a tutorial. What I miss today is a good written (no videos! Please!) tutorial that teaches just a little of the language and give a few guidelines on how to do simple stuff with the environment, such as a "

Re: [Pharo-users] AST-Core-Parser readFrom: question

2016-10-26 Thread Nicolai Hess
2016-10-25 21:16 GMT+02:00 Brad Selfridge : > Is it safe to use the AST-Core-Parser class extension "readFrom:" in a > business application? > Maybe no. It is bound to smalltalk syntax and the allowed number literals. For example, a '+' sign in a float exponents has some suprising behavior Numbe

Re: [Pharo-users] Spec: Setting rows height of a pictures list

2016-10-31 Thread Nicolai Hess
2016-10-31 10:19 GMT+01:00 Matteo via Pharo-users < pharo-users@lists.pharo.org>: > > > -- Weitergeleitete Nachricht -- > From: Matteo > To: "Pharo is welcome (ML)" > Cc: > Date: Mon, 31 Oct 2016 10:18:03 +0100 > Subject: Spec: Setting rows height of a pictures list > Hi, >

Re: [Pharo-users] Spec: Setting rows height of a pictures list

2016-10-31 Thread Nicolai Hess
layout := SpecTableLayout row add:#yourself; height: item image height; width: item image width. item buildWithSpecLayout: layout]. listModel openWithSpec > > On 31/10/16 12:26, Nicolai Hess wrote: > > > > > > 2016-10-31 10:19 GMT+01:00 Matteo via Pharo

Re: [Pharo-users] UDP Socket primitive failure

2016-10-31 Thread Nicolai Hess
Hi, 2016-10-31 12:46 GMT+01:00 Dimitris Chloupis : > Hey guys I try to use Pharo to use Supercollider via OSC. OSC library is > maintained by Stef in STHub. > > So SC informs that it receives the messages sent, but in Pharo I am > getting annoying Primitive errors that I paste bellow. Anyone know

Re: [Pharo-users] UDP Socket primitive failure

2016-10-31 Thread Nicolai Hess
Am 31.10.2016 5:14 nachm. schrieb "Nicolai Hess" : > > Hi, > > 2016-10-31 12:46 GMT+01:00 Dimitris Chloupis : >> >> Hey guys I try to use Pharo to use Supercollider via OSC. OSC library is maintained by Stef in STHub. >> >> So SC informs that it

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-03 Thread Nicolai Hess
2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > In case someone missed it I will be doing a release for version 5 (pharo > version = pbe version) this weekend , since we had Pharo 7 initiated few > days ago. > > Essentially that means that the repo will be tagged for version 5, which > means a gi

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-03 Thread Nicolai Hess
2016-11-03 15:02 GMT+01:00 stepharo : > Hi nicolai > > I started to work on the reflection chapter. > The reflection chapter (and maybe some other too) could new some new screenshots. > Now hacking PharoDoc :) > > Stef > > Le 3/11/16 à 14:29, Nicolai Hess a écrit : &

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-03 Thread Nicolai Hess
2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > In case someone missed it I will be doing a release for version 5 (pharo > version = pbe version) this weekend , since we had Pharo 7 initiated few > days ago. > > Essentially that means that the repo will be tagged for version 5, which > means a gi

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-06 Thread Nicolai Hess
2016-11-03 15:11 GMT+01:00 Nicolai Hess : > > > 2016-11-03 15:02 GMT+01:00 stepharo : > >> Hi nicolai >> >> I started to work on the reflection chapter. >> > > > The reflection chapter (and maybe some other too) could new some new > screenshots. >

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-06 Thread Nicolai Hess
Am 06.11.2016 21:04 schrieb "Dimitris Chloupis" : > > yeah as I said the chapter needs a complete rewrite. I am not even it is necessary to exist separately. > > On Sun, Nov 6, 2016 at 9:27 PM Nicolai Hess wrote: >> >> 2016-11-03 15:11 GMT+01:00 Nicolai Hess : &g

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-07 Thread Nicolai Hess
Am 27.10.2016 1:33 nachm. schrieb "Dimitris Chloupis" : > > In case someone missed it I will be doing a release for version 5 (pharo version = pbe version) this weekend , since we had Pharo 7 initiated few days ago. > > Essentially that means that the repo will be tagged for version 5, which means

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-07 Thread Nicolai Hess
2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > In case someone missed it I will be doing a release for version 5 (pharo > version = pbe version) this weekend , since we had Pharo 7 initiated few > days ago. > > Essentially that means that the repo will be tagged for version 5, which > means a gi

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-07 Thread Nicolai Hess
2016-11-07 9:52 GMT+01:00 Nicolai Hess : > > > 2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > >> In case someone missed it I will be doing a release for version 5 (pharo >> version = pbe version) this weekend , since we had Pharo 7 initiated few >> days ago. >

Re: [Pharo-users] Image freezes on Linux if it was previously saved on Windows

2016-11-07 Thread Nicolai Hess
2016-11-01 13:18 GMT+01:00 Sean Glazier : > did you get a fix for this? I am seeing this in pharo 5 image and I have > not > seen a fix yet > > No :( But I think with this change by Pavel: 19308 WorkingSession id depe

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-07 Thread Nicolai Hess
other content that is about the core tools (browser, debugger, finder ...) > > On Mon, Nov 7, 2016 at 10:54 AM Nicolai Hess > wrote: > >> 2016-11-07 9:52 GMT+01:00 Nicolai Hess : >> >> >> >> 2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : >> >> In

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-07 Thread Nicolai Hess
2016-11-07 8:47 GMT+01:00 Nicolai Hess : > Am 06.11.2016 21:04 schrieb "Dimitris Chloupis" : > > > > yeah as I said the chapter needs a complete rewrite. I am not even it is > necessary to exist separately. > > > > On Sun, Nov 6, 2016 at 9:27 PM Nicolai H

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-08 Thread Nicolai Hess
(!) ? 2016-11-08 1:00 GMT+01:00 Nicolai Hess : > > > 2016-11-07 8:47 GMT+01:00 Nicolai Hess : > >> Am 06.11.2016 21:04 schrieb "Dimitris Chloupis" : >> > >> > yeah as I said the chapter needs a complete rewrite. I am not even it >> is necessary to exi

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-08 Thread Nicolai Hess
2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > In case someone missed it I will be doing a release for version 5 (pharo > version = pbe version) this weekend , since we had Pharo 7 initiated few > days ago. > > Essentially that means that the repo will be tagged for version 5, which > means a gi

Re: [Pharo-users] Converting an Array of Characters to a String

2016-11-08 Thread Nicolai Hess
2016-11-08 14:31 GMT+01:00 Dimitris Chloupis : > I feel like stupid but I cannot find a way to convert an Array of > Characters to a String , I can do with a do: and join characters converted > to strings to a single string but it feels too many steps. > > Is there a simpler way ? > String newFro

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-10 Thread Nicolai Hess
2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > In case someone missed it I will be doing a release for version 5 (pharo > version = pbe version) this weekend , since we had Pharo 7 initiated few > days ago. > > Essentially that means that the repo will be tagged for version 5, which > means a gi

Re: [Pharo-users] [ALERT] Pharo by Example version 5 is about to be released

2016-11-11 Thread Nicolai Hess
2016-10-27 13:32 GMT+02:00 Dimitris Chloupis : > In case someone missed it I will be doing a release for version 5 (pharo > version = pbe version) this weekend , since we had Pharo 7 initiated few > days ago. > > Essentially that means that the repo will be tagged for version 5, which > means a gi

Re: [Pharo-users] scope shadowing problem.

2016-11-14 Thread Nicolai Hess
2016-11-14 22:34 GMT+01:00 CodeDmitry : > Is there a way to stop Pharo from preventing me from shadowing blocks? > There is no setting for ignoring this warning, but you can compile the code in a non-interactive way: Object compile: 'foo [ :superenv | | env | env := Dictionary new.

Re: [Pharo-users] Resetting Ring ?

2016-12-21 Thread Nicolai Hess
2016-12-20 11:45 GMT+01:00 Sven Van Caekenberghe : > In a 4.0 image I got in a situation where it seems Ring is out of sync (I > am getting errors of missing meta classes on each accept). I vaguely > remember there being an expression to reset/reinitialise Ring ? > I do not remember any case in w

Re: [Pharo-users] Creating a zip file without storing relative paths of file folders

2017-01-04 Thread Nicolai Hess
2017-01-04 4:44 GMT+01:00 Offray Vladimir Luna Cárdenas < offray.l...@mutabit.com>: > Hi :-), > > I'm creating a Grafoscopio interactive notebook for learning Lua and > making a small video game with the LÖVE 2D game engine, following the > excellent SheepPollution video series[1]. My first video

Re: [Pharo-users] Reverse interval

2017-01-05 Thread Nicolai Hess
2017-01-05 9:46 GMT+01:00 Dimitris Chloupis : > mainly because in my 30 years of coding for fun I never gave a damn what C > or other languages try to convince us what expected behaviour is , its one > of the big reason why I code in Smalltalk ;) > > plus I hate C/C++ with a vengeance , so :D > >

Re: [Pharo-users] Reverse interval

2017-01-05 Thread Nicolai Hess
g > > Would it not "Interval empty" made more sense ? or is (1 to: 0) > convenient in some way in your scenario ? > > On Thu, Jan 5, 2017 at 10:59 AM Nicolai Hess > wrote: > >> 2017-01-05 9:46 GMT+01:00 Dimitris Chloupis : >> >> mainly because in my

Re: [Pharo-users] SLICE-Issue-18901-Highlight-message-send-selector-on-mouse-over-NicolaiHess.4 introduces new bug?

2017-02-06 Thread Nicolai Hess
Hi Alistair, the error messages from Rubric-Components, if there occured an error is often misleading. I added this act-on-move-functionality for highlighting message sends and I forgot to respect to full TextAction hierarchy (I only implemented the actOnMove: anEvent for: target in: aParagraph ed

Re: [Pharo-users] SLICE-Issue-18901-Highlight-message-send-selector-on-mouse-over-NicolaiHess.4 introduces new bug?

2017-02-07 Thread Nicolai Hess
Am 08.02.2017 2:12 vorm. schrieb "Alistair Grant" : Hi Nicolai, On 7 February 2017 at 18:56, Nicolai Hess wrote: > Hi Alistair, > the error messages from Rubric-Components, if there occured an error is > often misleading. > > I added this act-on-move-functionality for h

Re: [Pharo-users] What is the craziest bug you ever face

2017-03-09 Thread Nicolai Hess
2017-03-09 12:36 GMT+01:00 Stephane Ducasse : > Hi guys > > During the DSU workshop we were brainstorming about what are the most > difficult bugs we faced and what are the conceptual tools that would have > helped you. > > Stef > https://pharo.fogbugz.com/f/cases/14332/use-ast-not-parseTree-so-w

Re: [Pharo-users] UI with Spec, how to get mouse events ?

2017-03-21 Thread Nicolai Hess
2017-03-21 20:21 GMT+01:00 Daniel BLANC : > Hi all, > > I'm building a Spec UI with an ImageModel and a LabelModel. The image is a > map, and the label should display the mouse coordinates when the mouse > cursor is on the map. > > I'm a newcomer to Pharo and Smalltalk, I've searched in the pharo

Re: [Pharo-users] Traits, method flatten

2017-04-12 Thread Nicolai Hess
I am interested, and I think I already looked at this issue, I vaguely remember, that this has something to do with the determination of the origin of a method (trait methods that are from another trait are wrongly recognized as (trait)local methods). 2017-04-13 8:37 GMT+02:00 Hilaire : > Hi, >

Re: [Pharo-users] Traits score: Squeak: 1, Pharo5: 0

2017-04-14 Thread Nicolai Hess
2017-04-14 17:13 GMT+02:00 Hilaire : > I tried but I can't reproduce the case with dummy code. > I can share privately an image though. > > Hilaire > > Le 14/04/2017 à 15:24, Denis Kudriashov a écrit : > > > > Could you create example set of packages to reproduce problem? (to be > > not dependant

Re: [Pharo-users] Smalltalk syntactic coloration in Spec's TextModel

2017-05-03 Thread Nicolai Hess
2017-05-03 16:57 GMT+02:00 Julien Delplanque : > Hello, > > I looked in the mailing list archive but did not found an answer. > > Is there any way to have Smalltalk syntactic coloration in a TextModel > without having to put efforts in it? > > I mean, if I do: > > TextModel new > isForSmalltal

Re: [Pharo-users] Smalltalk syntactic coloration in Spec's TextModel

2017-05-04 Thread Nicolai Hess
g the behavior (class of the method): TextModel new isForSmalltalkCode: true; text: (Collection>>#anyOne) sourceCode; aboutToStyle: true; behavior: (Collection>>#anyOne) methodClass; openWithSpec > > Thanks in advance, > > Julien > > > > On

Re: [Pharo-users] How to add a contextual menu to a Spec ListModel

2017-05-24 Thread Nicolai Hess
2017-05-24 11:25 GMT+02:00 Sven Van Caekenberghe : > Hi, > > I am struggle a bit in find the right way to add a contextual menu to a > Spec ListModel. > > Consider: > > ListModel new > title: 'List Example'; > items: Smalltalk allClasses; > openWithSpec. > > I would like to add a right-click

Re: [Pharo-users] line drawing bug

2018-04-06 Thread Nicolai Hess
Hi Joe, the problem is that the BalloonCanvas (or some objects it is using) aren't fully reset after some drawing operations. (the drawString method for example sets the sourceForm as glyph to be drawn). it should work if you do not store the canvas instance, but create a new in every loop:

Re: [Pharo-users] Morphic, Canvas, and Drawing Polygon Borders

2018-05-16 Thread Nicolai Hess
Hi Eric, I don't know exactly how Borders (BorderdMorphs) are drawn, but a simple way to create that kind of 1px border with 2px round edges may be using the a borderd morph: BorderedMorph new fillStyle: Color transparent; borderStyle: (RoundedBorder new

Re: [Pharo-users] Text editor + morph

2018-10-07 Thread Nicolai Hess
The "old" way, a Morph asText, still works. I don't know if this is still fully usable with normal text operations: |text block| block := [ Morph new asText, ' some text']. text:=(Smalltalk ui theme builder newTextEditorFor: block getText: #value setText: nil). text openInWindow. Am Mi., 3. Ok

[Pharo-users] How to attach a repository

2018-11-24 Thread Nicolai Hess
How can I "attach a repository" to project pharo? In a fresh pharo 7 image I get this message on clicking the "history" button on a method in calypse: [image: grafik.png] btw, the "atttached" has three t's :) And wouldn't it be better, to show an error dialog instead of a debugger stacktrace, i

Re: [Pharo-users] split on space or -

2018-11-24 Thread Nicolai Hess
What have you tried so far? There is a split method in pharo, with examples :) Am Sa., 24. Nov. 2018 um 21:49 Uhr schrieb Roelof Wobben : > Hello, > > For a acronym maker challenge on exercism.io I have to make acronyms. > But I see I have to split the parts on space and when it's a word with a >

Re: [Pharo-users] split on space or -

2018-11-24 Thread Nicolai Hess
x27; > > does work and > > 'Complementary metal-oxide semiconductor' splitOn: ' ' > > does work > > > > Op 24-11-2018 om 22:19 schreef Roelof Wobben: > > thanks, > > this one looks very promosing :self assert: ('foobar' spli

Re: [Pharo-users] [squeak-dev] Named serial port bug and how to contribute

2018-11-29 Thread Nicolai Hess
Good to know! Am Fr., 30. Nov. 2018 um 02:25 Uhr schrieb Ricardo Moran < richi.mo...@gmail.com>: > Hi, > > I think I found a bug with the named serial ports in windows. > I can open a named port without problem the first time but if I close it > and try to open it again it fails until I restart t

<    1   2   3   4   5