On Tue, May 8, 2012 at 9:59 AM, Stéphane Ducasse <[email protected]>wrote:
> mariano > how can you override a general behavior without redoing it? > > What I mean by override is exactly redoing. So if in /Users/mariano/.config/pharo/general you have a script that does: UITheme currentSettings fastDragging: true. and then in /Users/mariano/.config/pharo/2.0 (or in startup.st in the image directory) I have a script that does UITheme currentSettings fastDragging: false. then it will be false the value, beacuse the order of execution is from the most general to the most specific. Cheers > Stef > > On May 7, 2012, at 10:21 PM, Mariano Martinez Peck wrote: > > > Hi guys. After playing a little bit with StartupPreferences, and > continuing the effort of Ben (thanks Ben for yet another great tool), I > generate a improved (from my point of view) version of the tool. > > > > The main changes are: > > > > a) Previously the tool searched files 1) first in image directory, 2) > then in the preference folder and 3) finally in the general preference > folder. As soon as it found at least one file, I didn't continue with the > rest of the places. Now, it starts the other way around, from the most > general to the most spceific. Starts in 3), then 2) and finally 3). > Moreover, it does not stop when it finds files in any of them. So all are > searched and executed. It works or or less the same way as variables in > UNIX with .bashrc /etc/envirorment, etc... > > > > b) I have created several class side methods (addAtStartup*) to create > given actions into the current directory. Previously, files were created in > 2 folders at the same time and there were only the possibility to create > only in one place. Now you can add startup actions in any of the 3 places > mentioned in a) > > > > c) Added a whole protocol (remove* and clean*) to remove script files > from all folders of a) and also to clean the internal stored actions. > > > > d) Lots of internal refactors to reuse code and less hardcoding. > > > > Does someone want to take a look to the slice ? > > Slice in inbox: http://code.google.com/p/pharo/issues/detail?id=5835 > > > > Cheers, > > > > -- > > Mariano > > http://marianopeck.wordpress.com > > > > > -- Mariano http://marianopeck.wordpress.com
