From juan at jvuletich.org Tue Jul 1 12:31:09 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 01 Jul 2014 14:31:09 -0300 Subject: [Cuis] A question on packages In-Reply-To: <53AEC470.9070009@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> Message-ID: <53B2F05D.4000300@jvuletich.org> Hi Folks, Today I uploaded a few updates and a new image. Now the prerequisite analysis is immensely faster. You get the "missing prerequisite" message within seconds. And (as before), no code is loaded at all. Cheers, Juan Vuletich On 28/06/2014 10:34 a.m., Juan Vuletich wrote: > One hour! > > I usually deal with small packages and I wasn't aware of this huge > performance problem. I will work on it. I hope to be able to reduce > this time significantly during next week. > > I will also enhance the error message, to make it clear whether > something was actually loaded or not... > > WRT how to get Aida working, you might look for some package named > 'Cuis-Network-MIME', I could find it easily by googling a bit. Or you > might use Germ?n's preloaded image. He did the port, so he's best to > advice. > > Cheers, > Juan Vuletich > > On 6/27/2014 1:33 PM, Hari Balaraman wrote: >> Hi Juan, >> >> No worries. >> >> These are the steps: >> >> - I was using the Cuis4.2-2009.image in a folder with a sibling >> folder titled "Cuis-Smalltalk-Aida-master? downloaded from >> https://github.com/garduino/Cuis-Smalltalk-Aida >> >> - I opened a workspace, typed in Feature require: ?Aida? >> >> - I selected the text, right clicked it, chose "Smalltalk Options" >> and selected ?Do it? [I though Apple-D does the same thing but it >> appears not] >> >> - A window entitled ?Scanning Aida.pck.st? appeared which takes a >> very very long time to progress (+30 mins - it uses enough cpu to >> cause my laptop to run up the fans) >> >> - Another window titled ?Processing Aida.pck.st" appeared >> >> - After +60 minutes, a window appears with ?Error: Could not find >> package supplying feature: FeatureRequirement(Cuis-Network-MIME 1.0 >> to *.*) >> >> [At this point I don?t know whether the installation was not-at-all, >> partially or entirely successful] >> >> Regards, >> >> Hari >> >> >> On Jun 27, 2014, at 8:04 AM, Juan Vuletich wrote: >> >>> Hi Hari, >>> >>> Welcome aboard. >>> >>> On 6/26/2014 9:31 PM, Hari Balaraman wrote: >>>> HI Ken, >>>> Thank you. The process kicked off when I followed your >>>> instructions. However it gave me an error message mentioning a >>>> ?Network-Mime? dependancy (I think.) >>> Please try to reproduce the problem and describe the exact steps to >>> do it. This way, you will help us enhance Cuis. >>> >>> Best regards, >>> Juan Vuletich >>> >>>> I navigated the issue by creating a package of my putative >>>> application and importing it into German Arduino?s Aida image. >>>> Best regards, >>>> Hari >> > > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From garduino at gmail.com Wed Jul 2 06:20:43 2014 From: garduino at gmail.com (=?UTF-8?Q?Germ=C3=A1n_Arduino?=) Date: Wed, 2 Jul 2014 08:20:43 -0300 Subject: [Cuis] A question on packages In-Reply-To: <53B2F05D.4000300@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> Message-ID: Cool! 2014-07-01 14:31 GMT-03:00 Juan Vuletich : > Hi Folks, > > Today I uploaded a few updates and a new image. Now the prerequisite > analysis is immensely faster. You get the "missing prerequisite" message > within seconds. And (as before), no code is loaded at all. > > Cheers, > Juan Vuletich > > > On 28/06/2014 10:34 a.m., Juan Vuletich wrote: > >> One hour! >> >> I usually deal with small packages and I wasn't aware of this huge >> performance problem. I will work on it. I hope to be able to reduce this >> time significantly during next week. >> >> I will also enhance the error message, to make it clear whether something >> was actually loaded or not... >> >> WRT how to get Aida working, you might look for some package named >> 'Cuis-Network-MIME', I could find it easily by googling a bit. Or you might >> use Germ?n's preloaded image. He did the port, so he's best to advice. >> >> Cheers, >> Juan Vuletich >> >> On 6/27/2014 1:33 PM, Hari Balaraman wrote: >> >>> Hi Juan, >>> >>> No worries. >>> >>> These are the steps: >>> >>> - I was using the Cuis4.2-2009.image in a folder with a sibling folder >>> titled "Cuis-Smalltalk-Aida-master? downloaded from >>> https://github.com/garduino/Cuis-Smalltalk-Aida >>> >>> - I opened a workspace, typed in Feature require: ?Aida? >>> >>> - I selected the text, right clicked it, chose "Smalltalk Options" and >>> selected ?Do it? [I though Apple-D does the same thing but it appears not] >>> >>> - A window entitled ?Scanning Aida.pck.st? appeared which takes a very >>> very long time to progress (+30 mins - it uses enough cpu to cause my >>> laptop to run up the fans) >>> >>> - Another window titled ?Processing Aida.pck.st" appeared >>> >>> - After +60 minutes, a window appears with ?Error: Could not find >>> package supplying feature: FeatureRequirement(Cuis-Network-MIME 1.0 to >>> *.*) >>> >>> [At this point I don?t know whether the installation was not-at-all, >>> partially or entirely successful] >>> >>> Regards, >>> >>> Hari >>> >>> >>> On Jun 27, 2014, at 8:04 AM, Juan Vuletich wrote: >>> >>> Hi Hari, >>>> >>>> Welcome aboard. >>>> >>>> On 6/26/2014 9:31 PM, Hari Balaraman wrote: >>>> >>>>> HI Ken, >>>>> Thank you. The process kicked off when I followed your instructions. >>>>> However it gave me an error message mentioning a ?Network-Mime? dependancy >>>>> (I think.) >>>>> >>>> Please try to reproduce the problem and describe the exact steps to do >>>> it. This way, you will help us enhance Cuis. >>>> >>>> Best regards, >>>> Juan Vuletich >>>> >>>> I navigated the issue by creating a package of my putative application >>>>> and importing it into German Arduino?s Aida image. >>>>> Best regards, >>>>> Hari >>>>> >>>> >>> >> >> _______________________________________________ >> Cuis mailing list >> Cuis at jvuletich.org >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org >> >> > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > -- Saludos / Regards, Germ?n Arduino www.arduinosoftware.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hbalaraman at gmail.com Thu Jul 10 12:03:20 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 10 Jul 2014 13:03:20 -0400 Subject: [Cuis] Two questions In-Reply-To: <53B2F05D.4000300@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> Message-ID: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Folks, I have two questions and many thanks in advance for any suggestions or advice you can offer: 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. This is what I type into my workspace: m:= ClassBuilder new. m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? Best regards, Hari From hbalaraman at gmail.com Thu Jul 10 21:12:24 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 10 Jul 2014 22:12:24 -0400 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> Apologies for stuffing your mailboxes.. Figured it out. I use the superclass method of the ClassBuilder class. Regards, Hari On Jul 10, 2014, at 1:03 PM, Hari Balaraman wrote: > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari > From casey.obrien.r at gmail.com Fri Jul 11 00:06:21 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Thu, 10 Jul 2014 22:06:21 -0700 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: On a useless cellphone right now. IIRC, you can do something like Preferences explore This should give you a view into the preferences object. I think you should be looking to disable (set to false) something like 'focusFollowsMouse' but again, I can't look right now. Hopefully I haven't led you too far astray here, but I think it's in there. If you don't find it, bug me again and I'll figure it out for sure. Casey > On Jul 10, 2014, at 10:03 AM, Hari Balaraman wrote: > > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari > > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From juan at jvuletich.org Fri Jul 11 06:50:04 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 11 Jul 2014 08:50:04 -0300 Subject: [Cuis] Two questions In-Reply-To: <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> Message-ID: <53BFCF6C.5050005@jvuletich.org> Hi Hari, On 7/10/2014 11:12 PM, Hari Balaraman wrote: > Apologies for stuffing your mailboxes.. Figured it out. I use the superclass method of the ClassBuilder class. > Regards, > Hari > Yes. Just for the record, the text you save on a Browser when you create a new class, is just a Smalltalk expression, a message sent to the class you subclass. Just evaluating such code in any part of your application will create a new class. As you see in any class definition, the instanceVariableNames: is a string comprising variable names, separated by a space. Cheers, Juan Vuletich > On Jul 10, 2014, at 1:03 PM, Hari Balaraman wrote: > >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari >> > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From juan at jvuletich.org Fri Jul 11 06:55:49 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 11 Jul 2014 08:55:49 -0300 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <53BFD0C5.5070109@jvuletich.org> Hi Hari, On 7/10/2014 2:03 PM, Hari Balaraman wrote: > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari Many times I find it useful to give focus to a field by just moving the mouse, without needing a mouse click. If you prefer the more conventional 'click-to-focus' behavior, just evaluate: Preferences disable: #focusFollowsMouse Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). Cheers, Juan Vuletich From davidedc at gmail.com Fri Jul 11 10:35:44 2014 From: davidedc at gmail.com (Davide Della Casa) Date: Fri, 11 Jul 2014 16:35:44 +0100 Subject: [Cuis] Hi list - new Cuis explorer here! Message-ID: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Hi list, as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) Cheers, Davide From hbalaraman at gmail.com Fri Jul 11 18:03:46 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Fri, 11 Jul 2014 19:03:46 -0400 Subject: [Cuis] Two questions In-Reply-To: <53BFD0C5.5070109@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> Message-ID: <0650FFBA-D582-404B-BFE0-BF8E71BB0BB6@gmail.com> Will try my hand at it. Code will probably look really clunky. :) H On Jul 11, 2014, at 7:55 AM, Juan Vuletich wrote: > Hi Hari, > > On 7/10/2014 2:03 PM, Hari Balaraman wrote: >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari > > Many times I find it useful to give focus to a field by just moving the mouse, without needing a mouse click. > > If you prefer the more conventional 'click-to-focus' behavior, just evaluate: > > Preferences disable: #focusFollowsMouse > > Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). > > Cheers, > Juan Vuletich From hbalaraman at gmail.com Sat Jul 12 01:20:21 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Sat, 12 Jul 2014 02:20:21 -0400 Subject: [Cuis] Two questions In-Reply-To: References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <0C35F9E3-5FA4-4610-A640-EA10C7A1259D@gmail.com> Hi Casey, Thanks! Best regards, Hari On Jul 11, 2014, at 1:06 AM, Casey Ransberger wrote: > On a useless cellphone right now. IIRC, you can do something like > > Preferences explore > > This should give you a view into the preferences object. I think you should be looking to disable (set to false) something like 'focusFollowsMouse' but again, I can't look right now. > > Hopefully I haven't led you too far astray here, but I think it's in there. If you don't find it, bug me again and I'll figure it out for sure. > > Casey > >> On Jul 10, 2014, at 10:03 AM, Hari Balaraman wrote: >> >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari >> >> >> _______________________________________________ >> Cuis mailing list >> Cuis at jvuletich.org >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From casey.obrien.r at gmail.com Sat Jul 12 09:10:43 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Sat, 12 Jul 2014 07:10:43 -0700 Subject: [Cuis] Two questions In-Reply-To: <53BFD0C5.5070109@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> Message-ID: <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> > On Jul 11, 2014, at 4:55 AM, Juan Vuletich wrote: > > Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). If Hari doesn't get around to it in the next week or so, someone bug me and I'll do it. We're "fighting the power" a bit on this, and if we don't make the compu-normative behavior the default (ugh) we should definitely make the preference easy to discover and change for newcomers. On the subject: since most prefs are just enable/disable, what do folks think about a small project to put them all in the menu system (rather than some heavy-handed PreferenceBrowser?) The snags will all be non-Boolean prefs which would need either submenus or dialogs. My thought is that the mainstay of preference interaction could be programmatically generated based on the prefs object's structure except in unusual cases (which would need to be handled with cleverness.) Thoughts? Please shoot holes in my hot air balloon, dear friends. --C From juan at jvuletich.org Tue Jul 15 07:54:25 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 15 Jul 2014 09:54:25 -0300 Subject: [Cuis] Hi list - new Cuis explorer here! In-Reply-To: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> References: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Message-ID: <53C52481.9040808@jvuletich.org> Welcome, Davide! Feel free to ask any questions. And keep us posted on your progress! Cheers, Juan Vuletich On 11/07/2014 12:35 p.m., Davide Della Casa wrote: > Hi list, > > as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. > > Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. > > So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? > > I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) > > Cheers, > Davide > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From juan at jvuletich.org Tue Jul 15 07:57:08 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 15 Jul 2014 09:57:08 -0300 Subject: [Cuis] Two questions In-Reply-To: <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> Message-ID: <53C52524.3020608@jvuletich.org> On 12/07/2014 11:10 a.m., Casey Ransberger wrote: >> On Jul 11, 2014, at 4:55 AM, Juan Vuletich wrote: >> >> Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). > If Hari doesn't get around to it in the next week or so, someone bug me and I'll do it. We're "fighting the power" a bit on this, and if we don't make the compu-normative behavior the default (ugh) we should definitely make the preference easy to discover and change for newcomers. > > On the subject: since most prefs are just enable/disable, what do folks think about a small project to put them all in the menu system (rather than some heavy-handed PreferenceBrowser?) > > The snags will all be non-Boolean prefs which would need either submenus or dialogs. My thought is that the mainstay of preference interaction could be programmatically generated based on the prefs object's structure except in unusual cases (which would need to be handled with cleverness.) > > Thoughts? Please shoot holes in my hot air balloon, dear friends. > > --C > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > Haven't thought much about all this, but please keep the ball rolling. First, do it just for booleans. I'm sure playing with it will help further ideas to appear... Cheers, Juan Vuletich From casey.obrien.r at gmail.com Wed Jul 16 01:10:36 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Tue, 15 Jul 2014 23:10:36 -0700 Subject: [Cuis] Hi list - new Cuis explorer here! In-Reply-To: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> References: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Message-ID: <92380A4D-2007-4822-BEFC-B68C19C4E233@gmail.com> Compiling to JavaScript is currently the apsis of cool. I checked out your projects and I think they're stellar. Hello, welcome, and good to have you around:) --C > On Jul 11, 2014, at 8:35 AM, Davide Della Casa wrote: > > Hi list, > > as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. > > Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. > > So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? > > I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) > > Cheers, > Davide > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From hbalaraman at gmail.com Thu Jul 24 00:00:00 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 24 Jul 2014 01:00:00 -0400 Subject: [Cuis] Styled Text Editor In-Reply-To: <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> Message-ID: Folks, I?ve been playing around with the Styled Text Editor and noticed two issues, one is that the default size of the SystemWindow is smaller than the toolbar and the second is that when the window is resized, every part of the toolbar becomes progressively transparent other than the second PluggableFilteringDropDownListMorph (relating to CharacterStyle). For the SystemWindow size on initialisation, I have used a very inelegant hack in the editFancierStyledText class method for the SystemWindow class by specifying a large enough morphExtent to the SystemWindow. But for the lack of transparency of the second PluggableFilteringDropDownListMorph on the resizing of the overall SystemWindow, I am lost. On examining and comparing, in inspectors, the two PluggableFilteringDropDownListMorphs in the toolbar, I find the only difference to be in the labels. I attach screenshots to illustrate the behaviour. Editor window fully extended outwards. Editor window partially constrained. Editor window fully constrained with second toolbar not transparent. I had one question for any folks that might know. What format does the text editor save files in? I saved it on the filesystem but couldn?t access it using textedit. If it isn?t accessible by non-smalltalk editors, is there a text editor you know of that I can install that will allow me to read and write to files on the filesystems. I started down that path last week writing to plaintext files (for an app I am building) but wanted to avoid reinventing the wheel in case it has already been done (also why I got pretty excited today about the stylised text editor.) On the issue of enabling and disabling the focusFollowsMouse preference, I attach an awful hack to the Preferences menu that unfortunately gets the job done for me in the latest image. Best regards, Hari -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.46.30 AM.png Type: image/png Size: 70022 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.46.46 AM.png Type: image/png Size: 68752 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.47.03 AM.png Type: image/png Size: 22165 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Morphic-Menus.st Type: application/octet-stream Size: 80291 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: System-Support.st Type: application/octet-stream Size: 316722 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From juan at jvuletich.org Fri Jul 25 08:20:40 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 25 Jul 2014 10:20:40 -0300 Subject: [Cuis] Styled Text Editor In-Reply-To: References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> Message-ID: <53D259A8.4050606@jvuletich.org> Hi Hari, On 7/24/2014 2:00 AM, Hari Balaraman wrote: > Folks, > > I?ve been playing around with the Styled Text Editor and noticed two > issues, one is that the default size of the SystemWindow is smaller > than the toolbar and the second is that when the window is resized, > every part of the toolbar becomes progressively transparent *_other > than_* the second PluggableFilteringDropDownListMorph (relating to > CharacterStyle). > > For the SystemWindow size on initialisation, I have used a very > inelegant hack in the editFancierStyledText class method for the > SystemWindow class by specifying a large enough morphExtent to the > SystemWindow. > > But for the lack of transparency of the > second PluggableFilteringDropDownListMorph on the resizing of the > overall SystemWindow, I am lost. > > On examining and comparing, in inspectors, the two > PluggableFilteringDropDownListMorphs in the toolbar, I find the only > difference to be in the labels. > > > I attach screenshots to illustrate the behaviour. > Thanks for the report, Hari. I recently did some changes in morphic submorph clipping. Clipping is now done only on the first submorph. This is enough for scroll panes and such. And windows (together with most morphs) don't really need clipping, but good layout handling. I just committed a new version of StyledTextEditor to fix this. > I had one question for any folks that might know. What format does the > text editor save files in? I saved it on the filesystem but couldn?t > access it using textedit. If it isn?t accessible by non-smalltalk > editors, is there a text editor you know of that I can install that > will allow me to read and write to files on the filesystems. I started > down that path last week writing to plaintext files (for an app I am > building) but wanted to avoid reinventing the wheel in case it has > already been done (also why I got pretty excited today about the > stylised text editor.) Right now, we are saving files with SmartRefStream, as Smalltalk serialized objects. The code to support RTF is there, but I don't really like RTF, especially as it doesn't have a concept of styles. I think the best would be to be able to save and read .MD (markdown) format. And use a set of styles that match what markdown provides. Someone would need to code this, though. But I don't think it would be too hard if you or anybody wants to give it a try. > On the issue of enabling and disabling the focusFollowsMouse > preference, I attach an awful hack to the Preferences menu that > unfortunately gets the job done for me in the latest image. > > Best regards, > > Hari > I integrated your code in Cuis today. I think it makes sense, and is not hacky at all. Cheers, Juan Vuletich -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ken.Dickey at whidbey.com Fri Jul 25 23:48:07 2014 From: Ken.Dickey at whidbey.com (Ken Dickey) Date: Fri, 25 Jul 2014 21:48:07 -0700 Subject: [Cuis] Some Colors are required Message-ID: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> Juan, I tripped over a bug when (re)setting color dictionaries -- some colors are required by the UI. E.g. Color transparent. The attached code makes sure colors with these names exist in the new dictionary. Please update the base. Thanks much! -KenD ========== To see the bug Feature require: 'XKCD-NamedColors'. Color setColorNamesDict: (Color xkcdColorDictionary). ========== -------------- next part -------------- A non-text attachment was scrubbed... Name: Color_class-setColorNamesDict.st Type: application/octet-stream Size: 654 bytes Desc: not available URL: From juan at jvuletich.org Tue Jul 29 07:03:27 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 29 Jul 2014 09:03:27 -0300 Subject: [Cuis] Some Colors are required In-Reply-To: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> References: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> Message-ID: <53D78D8F.9080605@jvuletich.org> Thanks Ken, It is in the update stream now. Cheers, Juan Vuletich On 7/26/2014 1:48 AM, Ken Dickey wrote: > Juan, > > I tripped over a bug when (re)setting color dictionaries -- some colors are required by the UI. E.g. Color transparent. > > The attached code makes sure colors with these names exist in the new dictionary. > > Please update the base. > > Thanks much! > -KenD > > ========== To see the bug > Feature require: 'XKCD-NamedColors'. > Color setColorNamesDict: (Color xkcdColorDictionary). > ========== > From juan at jvuletich.org Tue Jul 1 12:31:09 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 01 Jul 2014 14:31:09 -0300 Subject: [Cuis] A question on packages In-Reply-To: <53AEC470.9070009@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> Message-ID: <53B2F05D.4000300@jvuletich.org> Hi Folks, Today I uploaded a few updates and a new image. Now the prerequisite analysis is immensely faster. You get the "missing prerequisite" message within seconds. And (as before), no code is loaded at all. Cheers, Juan Vuletich On 28/06/2014 10:34 a.m., Juan Vuletich wrote: > One hour! > > I usually deal with small packages and I wasn't aware of this huge > performance problem. I will work on it. I hope to be able to reduce > this time significantly during next week. > > I will also enhance the error message, to make it clear whether > something was actually loaded or not... > > WRT how to get Aida working, you might look for some package named > 'Cuis-Network-MIME', I could find it easily by googling a bit. Or you > might use Germ?n's preloaded image. He did the port, so he's best to > advice. > > Cheers, > Juan Vuletich > > On 6/27/2014 1:33 PM, Hari Balaraman wrote: >> Hi Juan, >> >> No worries. >> >> These are the steps: >> >> - I was using the Cuis4.2-2009.image in a folder with a sibling >> folder titled "Cuis-Smalltalk-Aida-master? downloaded from >> https://github.com/garduino/Cuis-Smalltalk-Aida >> >> - I opened a workspace, typed in Feature require: ?Aida? >> >> - I selected the text, right clicked it, chose "Smalltalk Options" >> and selected ?Do it? [I though Apple-D does the same thing but it >> appears not] >> >> - A window entitled ?Scanning Aida.pck.st? appeared which takes a >> very very long time to progress (+30 mins - it uses enough cpu to >> cause my laptop to run up the fans) >> >> - Another window titled ?Processing Aida.pck.st" appeared >> >> - After +60 minutes, a window appears with ?Error: Could not find >> package supplying feature: FeatureRequirement(Cuis-Network-MIME 1.0 >> to *.*) >> >> [At this point I don?t know whether the installation was not-at-all, >> partially or entirely successful] >> >> Regards, >> >> Hari >> >> >> On Jun 27, 2014, at 8:04 AM, Juan Vuletich wrote: >> >>> Hi Hari, >>> >>> Welcome aboard. >>> >>> On 6/26/2014 9:31 PM, Hari Balaraman wrote: >>>> HI Ken, >>>> Thank you. The process kicked off when I followed your >>>> instructions. However it gave me an error message mentioning a >>>> ?Network-Mime? dependancy (I think.) >>> Please try to reproduce the problem and describe the exact steps to >>> do it. This way, you will help us enhance Cuis. >>> >>> Best regards, >>> Juan Vuletich >>> >>>> I navigated the issue by creating a package of my putative >>>> application and importing it into German Arduino?s Aida image. >>>> Best regards, >>>> Hari >> > > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From garduino at gmail.com Wed Jul 2 06:20:43 2014 From: garduino at gmail.com (=?UTF-8?Q?Germ=C3=A1n_Arduino?=) Date: Wed, 2 Jul 2014 08:20:43 -0300 Subject: [Cuis] A question on packages In-Reply-To: <53B2F05D.4000300@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> Message-ID: Cool! 2014-07-01 14:31 GMT-03:00 Juan Vuletich : > Hi Folks, > > Today I uploaded a few updates and a new image. Now the prerequisite > analysis is immensely faster. You get the "missing prerequisite" message > within seconds. And (as before), no code is loaded at all. > > Cheers, > Juan Vuletich > > > On 28/06/2014 10:34 a.m., Juan Vuletich wrote: > >> One hour! >> >> I usually deal with small packages and I wasn't aware of this huge >> performance problem. I will work on it. I hope to be able to reduce this >> time significantly during next week. >> >> I will also enhance the error message, to make it clear whether something >> was actually loaded or not... >> >> WRT how to get Aida working, you might look for some package named >> 'Cuis-Network-MIME', I could find it easily by googling a bit. Or you might >> use Germ?n's preloaded image. He did the port, so he's best to advice. >> >> Cheers, >> Juan Vuletich >> >> On 6/27/2014 1:33 PM, Hari Balaraman wrote: >> >>> Hi Juan, >>> >>> No worries. >>> >>> These are the steps: >>> >>> - I was using the Cuis4.2-2009.image in a folder with a sibling folder >>> titled "Cuis-Smalltalk-Aida-master? downloaded from >>> https://github.com/garduino/Cuis-Smalltalk-Aida >>> >>> - I opened a workspace, typed in Feature require: ?Aida? >>> >>> - I selected the text, right clicked it, chose "Smalltalk Options" and >>> selected ?Do it? [I though Apple-D does the same thing but it appears not] >>> >>> - A window entitled ?Scanning Aida.pck.st? appeared which takes a very >>> very long time to progress (+30 mins - it uses enough cpu to cause my >>> laptop to run up the fans) >>> >>> - Another window titled ?Processing Aida.pck.st" appeared >>> >>> - After +60 minutes, a window appears with ?Error: Could not find >>> package supplying feature: FeatureRequirement(Cuis-Network-MIME 1.0 to >>> *.*) >>> >>> [At this point I don?t know whether the installation was not-at-all, >>> partially or entirely successful] >>> >>> Regards, >>> >>> Hari >>> >>> >>> On Jun 27, 2014, at 8:04 AM, Juan Vuletich wrote: >>> >>> Hi Hari, >>>> >>>> Welcome aboard. >>>> >>>> On 6/26/2014 9:31 PM, Hari Balaraman wrote: >>>> >>>>> HI Ken, >>>>> Thank you. The process kicked off when I followed your instructions. >>>>> However it gave me an error message mentioning a ?Network-Mime? dependancy >>>>> (I think.) >>>>> >>>> Please try to reproduce the problem and describe the exact steps to do >>>> it. This way, you will help us enhance Cuis. >>>> >>>> Best regards, >>>> Juan Vuletich >>>> >>>> I navigated the issue by creating a package of my putative application >>>>> and importing it into German Arduino?s Aida image. >>>>> Best regards, >>>>> Hari >>>>> >>>> >>> >> >> _______________________________________________ >> Cuis mailing list >> Cuis at jvuletich.org >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org >> >> > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > -- Saludos / Regards, Germ?n Arduino www.arduinosoftware.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hbalaraman at gmail.com Thu Jul 10 12:03:20 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 10 Jul 2014 13:03:20 -0400 Subject: [Cuis] Two questions In-Reply-To: <53B2F05D.4000300@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> Message-ID: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Folks, I have two questions and many thanks in advance for any suggestions or advice you can offer: 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. This is what I type into my workspace: m:= ClassBuilder new. m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? Best regards, Hari From hbalaraman at gmail.com Thu Jul 10 21:12:24 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 10 Jul 2014 22:12:24 -0400 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> Apologies for stuffing your mailboxes.. Figured it out. I use the superclass method of the ClassBuilder class. Regards, Hari On Jul 10, 2014, at 1:03 PM, Hari Balaraman wrote: > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari > From casey.obrien.r at gmail.com Fri Jul 11 00:06:21 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Thu, 10 Jul 2014 22:06:21 -0700 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: On a useless cellphone right now. IIRC, you can do something like Preferences explore This should give you a view into the preferences object. I think you should be looking to disable (set to false) something like 'focusFollowsMouse' but again, I can't look right now. Hopefully I haven't led you too far astray here, but I think it's in there. If you don't find it, bug me again and I'll figure it out for sure. Casey > On Jul 10, 2014, at 10:03 AM, Hari Balaraman wrote: > > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari > > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From juan at jvuletich.org Fri Jul 11 06:50:04 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 11 Jul 2014 08:50:04 -0300 Subject: [Cuis] Two questions In-Reply-To: <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> Message-ID: <53BFCF6C.5050005@jvuletich.org> Hi Hari, On 7/10/2014 11:12 PM, Hari Balaraman wrote: > Apologies for stuffing your mailboxes.. Figured it out. I use the superclass method of the ClassBuilder class. > Regards, > Hari > Yes. Just for the record, the text you save on a Browser when you create a new class, is just a Smalltalk expression, a message sent to the class you subclass. Just evaluating such code in any part of your application will create a new class. As you see in any class definition, the instanceVariableNames: is a string comprising variable names, separated by a space. Cheers, Juan Vuletich > On Jul 10, 2014, at 1:03 PM, Hari Balaraman wrote: > >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari >> > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From juan at jvuletich.org Fri Jul 11 06:55:49 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 11 Jul 2014 08:55:49 -0300 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <53BFD0C5.5070109@jvuletich.org> Hi Hari, On 7/10/2014 2:03 PM, Hari Balaraman wrote: > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari Many times I find it useful to give focus to a field by just moving the mouse, without needing a mouse click. If you prefer the more conventional 'click-to-focus' behavior, just evaluate: Preferences disable: #focusFollowsMouse Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). Cheers, Juan Vuletich From davidedc at gmail.com Fri Jul 11 10:35:44 2014 From: davidedc at gmail.com (Davide Della Casa) Date: Fri, 11 Jul 2014 16:35:44 +0100 Subject: [Cuis] Hi list - new Cuis explorer here! Message-ID: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Hi list, as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) Cheers, Davide From hbalaraman at gmail.com Fri Jul 11 18:03:46 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Fri, 11 Jul 2014 19:03:46 -0400 Subject: [Cuis] Two questions In-Reply-To: <53BFD0C5.5070109@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> Message-ID: <0650FFBA-D582-404B-BFE0-BF8E71BB0BB6@gmail.com> Will try my hand at it. Code will probably look really clunky. :) H On Jul 11, 2014, at 7:55 AM, Juan Vuletich wrote: > Hi Hari, > > On 7/10/2014 2:03 PM, Hari Balaraman wrote: >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari > > Many times I find it useful to give focus to a field by just moving the mouse, without needing a mouse click. > > If you prefer the more conventional 'click-to-focus' behavior, just evaluate: > > Preferences disable: #focusFollowsMouse > > Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). > > Cheers, > Juan Vuletich From hbalaraman at gmail.com Sat Jul 12 01:20:21 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Sat, 12 Jul 2014 02:20:21 -0400 Subject: [Cuis] Two questions In-Reply-To: References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <0C35F9E3-5FA4-4610-A640-EA10C7A1259D@gmail.com> Hi Casey, Thanks! Best regards, Hari On Jul 11, 2014, at 1:06 AM, Casey Ransberger wrote: > On a useless cellphone right now. IIRC, you can do something like > > Preferences explore > > This should give you a view into the preferences object. I think you should be looking to disable (set to false) something like 'focusFollowsMouse' but again, I can't look right now. > > Hopefully I haven't led you too far astray here, but I think it's in there. If you don't find it, bug me again and I'll figure it out for sure. > > Casey > >> On Jul 10, 2014, at 10:03 AM, Hari Balaraman wrote: >> >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari >> >> >> _______________________________________________ >> Cuis mailing list >> Cuis at jvuletich.org >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From casey.obrien.r at gmail.com Sat Jul 12 09:10:43 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Sat, 12 Jul 2014 07:10:43 -0700 Subject: [Cuis] Two questions In-Reply-To: <53BFD0C5.5070109@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> Message-ID: <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> > On Jul 11, 2014, at 4:55 AM, Juan Vuletich wrote: > > Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). If Hari doesn't get around to it in the next week or so, someone bug me and I'll do it. We're "fighting the power" a bit on this, and if we don't make the compu-normative behavior the default (ugh) we should definitely make the preference easy to discover and change for newcomers. On the subject: since most prefs are just enable/disable, what do folks think about a small project to put them all in the menu system (rather than some heavy-handed PreferenceBrowser?) The snags will all be non-Boolean prefs which would need either submenus or dialogs. My thought is that the mainstay of preference interaction could be programmatically generated based on the prefs object's structure except in unusual cases (which would need to be handled with cleverness.) Thoughts? Please shoot holes in my hot air balloon, dear friends. --C From juan at jvuletich.org Tue Jul 15 07:54:25 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 15 Jul 2014 09:54:25 -0300 Subject: [Cuis] Hi list - new Cuis explorer here! In-Reply-To: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> References: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Message-ID: <53C52481.9040808@jvuletich.org> Welcome, Davide! Feel free to ask any questions. And keep us posted on your progress! Cheers, Juan Vuletich On 11/07/2014 12:35 p.m., Davide Della Casa wrote: > Hi list, > > as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. > > Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. > > So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? > > I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) > > Cheers, > Davide > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From juan at jvuletich.org Tue Jul 15 07:57:08 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 15 Jul 2014 09:57:08 -0300 Subject: [Cuis] Two questions In-Reply-To: <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> Message-ID: <53C52524.3020608@jvuletich.org> On 12/07/2014 11:10 a.m., Casey Ransberger wrote: >> On Jul 11, 2014, at 4:55 AM, Juan Vuletich wrote: >> >> Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). > If Hari doesn't get around to it in the next week or so, someone bug me and I'll do it. We're "fighting the power" a bit on this, and if we don't make the compu-normative behavior the default (ugh) we should definitely make the preference easy to discover and change for newcomers. > > On the subject: since most prefs are just enable/disable, what do folks think about a small project to put them all in the menu system (rather than some heavy-handed PreferenceBrowser?) > > The snags will all be non-Boolean prefs which would need either submenus or dialogs. My thought is that the mainstay of preference interaction could be programmatically generated based on the prefs object's structure except in unusual cases (which would need to be handled with cleverness.) > > Thoughts? Please shoot holes in my hot air balloon, dear friends. > > --C > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > Haven't thought much about all this, but please keep the ball rolling. First, do it just for booleans. I'm sure playing with it will help further ideas to appear... Cheers, Juan Vuletich From casey.obrien.r at gmail.com Wed Jul 16 01:10:36 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Tue, 15 Jul 2014 23:10:36 -0700 Subject: [Cuis] Hi list - new Cuis explorer here! In-Reply-To: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> References: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Message-ID: <92380A4D-2007-4822-BEFC-B68C19C4E233@gmail.com> Compiling to JavaScript is currently the apsis of cool. I checked out your projects and I think they're stellar. Hello, welcome, and good to have you around:) --C > On Jul 11, 2014, at 8:35 AM, Davide Della Casa wrote: > > Hi list, > > as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. > > Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. > > So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? > > I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) > > Cheers, > Davide > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From hbalaraman at gmail.com Thu Jul 24 00:00:00 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 24 Jul 2014 01:00:00 -0400 Subject: [Cuis] Styled Text Editor In-Reply-To: <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> Message-ID: Folks, I?ve been playing around with the Styled Text Editor and noticed two issues, one is that the default size of the SystemWindow is smaller than the toolbar and the second is that when the window is resized, every part of the toolbar becomes progressively transparent other than the second PluggableFilteringDropDownListMorph (relating to CharacterStyle). For the SystemWindow size on initialisation, I have used a very inelegant hack in the editFancierStyledText class method for the SystemWindow class by specifying a large enough morphExtent to the SystemWindow. But for the lack of transparency of the second PluggableFilteringDropDownListMorph on the resizing of the overall SystemWindow, I am lost. On examining and comparing, in inspectors, the two PluggableFilteringDropDownListMorphs in the toolbar, I find the only difference to be in the labels. I attach screenshots to illustrate the behaviour. Editor window fully extended outwards. Editor window partially constrained. Editor window fully constrained with second toolbar not transparent. I had one question for any folks that might know. What format does the text editor save files in? I saved it on the filesystem but couldn?t access it using textedit. If it isn?t accessible by non-smalltalk editors, is there a text editor you know of that I can install that will allow me to read and write to files on the filesystems. I started down that path last week writing to plaintext files (for an app I am building) but wanted to avoid reinventing the wheel in case it has already been done (also why I got pretty excited today about the stylised text editor.) On the issue of enabling and disabling the focusFollowsMouse preference, I attach an awful hack to the Preferences menu that unfortunately gets the job done for me in the latest image. Best regards, Hari -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.46.30 AM.png Type: image/png Size: 70022 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.46.46 AM.png Type: image/png Size: 68752 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.47.03 AM.png Type: image/png Size: 22165 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Morphic-Menus.st Type: application/octet-stream Size: 80291 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: System-Support.st Type: application/octet-stream Size: 316722 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From juan at jvuletich.org Fri Jul 25 08:20:40 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 25 Jul 2014 10:20:40 -0300 Subject: [Cuis] Styled Text Editor In-Reply-To: References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> Message-ID: <53D259A8.4050606@jvuletich.org> Hi Hari, On 7/24/2014 2:00 AM, Hari Balaraman wrote: > Folks, > > I?ve been playing around with the Styled Text Editor and noticed two > issues, one is that the default size of the SystemWindow is smaller > than the toolbar and the second is that when the window is resized, > every part of the toolbar becomes progressively transparent *_other > than_* the second PluggableFilteringDropDownListMorph (relating to > CharacterStyle). > > For the SystemWindow size on initialisation, I have used a very > inelegant hack in the editFancierStyledText class method for the > SystemWindow class by specifying a large enough morphExtent to the > SystemWindow. > > But for the lack of transparency of the > second PluggableFilteringDropDownListMorph on the resizing of the > overall SystemWindow, I am lost. > > On examining and comparing, in inspectors, the two > PluggableFilteringDropDownListMorphs in the toolbar, I find the only > difference to be in the labels. > > > I attach screenshots to illustrate the behaviour. > Thanks for the report, Hari. I recently did some changes in morphic submorph clipping. Clipping is now done only on the first submorph. This is enough for scroll panes and such. And windows (together with most morphs) don't really need clipping, but good layout handling. I just committed a new version of StyledTextEditor to fix this. > I had one question for any folks that might know. What format does the > text editor save files in? I saved it on the filesystem but couldn?t > access it using textedit. If it isn?t accessible by non-smalltalk > editors, is there a text editor you know of that I can install that > will allow me to read and write to files on the filesystems. I started > down that path last week writing to plaintext files (for an app I am > building) but wanted to avoid reinventing the wheel in case it has > already been done (also why I got pretty excited today about the > stylised text editor.) Right now, we are saving files with SmartRefStream, as Smalltalk serialized objects. The code to support RTF is there, but I don't really like RTF, especially as it doesn't have a concept of styles. I think the best would be to be able to save and read .MD (markdown) format. And use a set of styles that match what markdown provides. Someone would need to code this, though. But I don't think it would be too hard if you or anybody wants to give it a try. > On the issue of enabling and disabling the focusFollowsMouse > preference, I attach an awful hack to the Preferences menu that > unfortunately gets the job done for me in the latest image. > > Best regards, > > Hari > I integrated your code in Cuis today. I think it makes sense, and is not hacky at all. Cheers, Juan Vuletich -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ken.Dickey at whidbey.com Fri Jul 25 23:48:07 2014 From: Ken.Dickey at whidbey.com (Ken Dickey) Date: Fri, 25 Jul 2014 21:48:07 -0700 Subject: [Cuis] Some Colors are required Message-ID: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> Juan, I tripped over a bug when (re)setting color dictionaries -- some colors are required by the UI. E.g. Color transparent. The attached code makes sure colors with these names exist in the new dictionary. Please update the base. Thanks much! -KenD ========== To see the bug Feature require: 'XKCD-NamedColors'. Color setColorNamesDict: (Color xkcdColorDictionary). ========== -------------- next part -------------- A non-text attachment was scrubbed... Name: Color_class-setColorNamesDict.st Type: application/octet-stream Size: 654 bytes Desc: not available URL: From juan at jvuletich.org Tue Jul 29 07:03:27 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 29 Jul 2014 09:03:27 -0300 Subject: [Cuis] Some Colors are required In-Reply-To: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> References: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> Message-ID: <53D78D8F.9080605@jvuletich.org> Thanks Ken, It is in the update stream now. Cheers, Juan Vuletich On 7/26/2014 1:48 AM, Ken Dickey wrote: > Juan, > > I tripped over a bug when (re)setting color dictionaries -- some colors are required by the UI. E.g. Color transparent. > > The attached code makes sure colors with these names exist in the new dictionary. > > Please update the base. > > Thanks much! > -KenD > > ========== To see the bug > Feature require: 'XKCD-NamedColors'. > Color setColorNamesDict: (Color xkcdColorDictionary). > ========== > From juan at jvuletich.org Tue Jul 1 12:31:09 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 01 Jul 2014 14:31:09 -0300 Subject: [Cuis] A question on packages In-Reply-To: <53AEC470.9070009@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> Message-ID: <53B2F05D.4000300@jvuletich.org> Hi Folks, Today I uploaded a few updates and a new image. Now the prerequisite analysis is immensely faster. You get the "missing prerequisite" message within seconds. And (as before), no code is loaded at all. Cheers, Juan Vuletich On 28/06/2014 10:34 a.m., Juan Vuletich wrote: > One hour! > > I usually deal with small packages and I wasn't aware of this huge > performance problem. I will work on it. I hope to be able to reduce > this time significantly during next week. > > I will also enhance the error message, to make it clear whether > something was actually loaded or not... > > WRT how to get Aida working, you might look for some package named > 'Cuis-Network-MIME', I could find it easily by googling a bit. Or you > might use Germ?n's preloaded image. He did the port, so he's best to > advice. > > Cheers, > Juan Vuletich > > On 6/27/2014 1:33 PM, Hari Balaraman wrote: >> Hi Juan, >> >> No worries. >> >> These are the steps: >> >> - I was using the Cuis4.2-2009.image in a folder with a sibling >> folder titled "Cuis-Smalltalk-Aida-master? downloaded from >> https://github.com/garduino/Cuis-Smalltalk-Aida >> >> - I opened a workspace, typed in Feature require: ?Aida? >> >> - I selected the text, right clicked it, chose "Smalltalk Options" >> and selected ?Do it? [I though Apple-D does the same thing but it >> appears not] >> >> - A window entitled ?Scanning Aida.pck.st? appeared which takes a >> very very long time to progress (+30 mins - it uses enough cpu to >> cause my laptop to run up the fans) >> >> - Another window titled ?Processing Aida.pck.st" appeared >> >> - After +60 minutes, a window appears with ?Error: Could not find >> package supplying feature: FeatureRequirement(Cuis-Network-MIME 1.0 >> to *.*) >> >> [At this point I don?t know whether the installation was not-at-all, >> partially or entirely successful] >> >> Regards, >> >> Hari >> >> >> On Jun 27, 2014, at 8:04 AM, Juan Vuletich wrote: >> >>> Hi Hari, >>> >>> Welcome aboard. >>> >>> On 6/26/2014 9:31 PM, Hari Balaraman wrote: >>>> HI Ken, >>>> Thank you. The process kicked off when I followed your >>>> instructions. However it gave me an error message mentioning a >>>> ?Network-Mime? dependancy (I think.) >>> Please try to reproduce the problem and describe the exact steps to >>> do it. This way, you will help us enhance Cuis. >>> >>> Best regards, >>> Juan Vuletich >>> >>>> I navigated the issue by creating a package of my putative >>>> application and importing it into German Arduino?s Aida image. >>>> Best regards, >>>> Hari >> > > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From garduino at gmail.com Wed Jul 2 06:20:43 2014 From: garduino at gmail.com (=?UTF-8?Q?Germ=C3=A1n_Arduino?=) Date: Wed, 2 Jul 2014 08:20:43 -0300 Subject: [Cuis] A question on packages In-Reply-To: <53B2F05D.4000300@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> Message-ID: Cool! 2014-07-01 14:31 GMT-03:00 Juan Vuletich : > Hi Folks, > > Today I uploaded a few updates and a new image. Now the prerequisite > analysis is immensely faster. You get the "missing prerequisite" message > within seconds. And (as before), no code is loaded at all. > > Cheers, > Juan Vuletich > > > On 28/06/2014 10:34 a.m., Juan Vuletich wrote: > >> One hour! >> >> I usually deal with small packages and I wasn't aware of this huge >> performance problem. I will work on it. I hope to be able to reduce this >> time significantly during next week. >> >> I will also enhance the error message, to make it clear whether something >> was actually loaded or not... >> >> WRT how to get Aida working, you might look for some package named >> 'Cuis-Network-MIME', I could find it easily by googling a bit. Or you might >> use Germ?n's preloaded image. He did the port, so he's best to advice. >> >> Cheers, >> Juan Vuletich >> >> On 6/27/2014 1:33 PM, Hari Balaraman wrote: >> >>> Hi Juan, >>> >>> No worries. >>> >>> These are the steps: >>> >>> - I was using the Cuis4.2-2009.image in a folder with a sibling folder >>> titled "Cuis-Smalltalk-Aida-master? downloaded from >>> https://github.com/garduino/Cuis-Smalltalk-Aida >>> >>> - I opened a workspace, typed in Feature require: ?Aida? >>> >>> - I selected the text, right clicked it, chose "Smalltalk Options" and >>> selected ?Do it? [I though Apple-D does the same thing but it appears not] >>> >>> - A window entitled ?Scanning Aida.pck.st? appeared which takes a very >>> very long time to progress (+30 mins - it uses enough cpu to cause my >>> laptop to run up the fans) >>> >>> - Another window titled ?Processing Aida.pck.st" appeared >>> >>> - After +60 minutes, a window appears with ?Error: Could not find >>> package supplying feature: FeatureRequirement(Cuis-Network-MIME 1.0 to >>> *.*) >>> >>> [At this point I don?t know whether the installation was not-at-all, >>> partially or entirely successful] >>> >>> Regards, >>> >>> Hari >>> >>> >>> On Jun 27, 2014, at 8:04 AM, Juan Vuletich wrote: >>> >>> Hi Hari, >>>> >>>> Welcome aboard. >>>> >>>> On 6/26/2014 9:31 PM, Hari Balaraman wrote: >>>> >>>>> HI Ken, >>>>> Thank you. The process kicked off when I followed your instructions. >>>>> However it gave me an error message mentioning a ?Network-Mime? dependancy >>>>> (I think.) >>>>> >>>> Please try to reproduce the problem and describe the exact steps to do >>>> it. This way, you will help us enhance Cuis. >>>> >>>> Best regards, >>>> Juan Vuletich >>>> >>>> I navigated the issue by creating a package of my putative application >>>>> and importing it into German Arduino?s Aida image. >>>>> Best regards, >>>>> Hari >>>>> >>>> >>> >> >> _______________________________________________ >> Cuis mailing list >> Cuis at jvuletich.org >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org >> >> > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > -- Saludos / Regards, Germ?n Arduino www.arduinosoftware.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hbalaraman at gmail.com Thu Jul 10 12:03:20 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 10 Jul 2014 13:03:20 -0400 Subject: [Cuis] Two questions In-Reply-To: <53B2F05D.4000300@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> Message-ID: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Folks, I have two questions and many thanks in advance for any suggestions or advice you can offer: 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. This is what I type into my workspace: m:= ClassBuilder new. m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? Best regards, Hari From hbalaraman at gmail.com Thu Jul 10 21:12:24 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 10 Jul 2014 22:12:24 -0400 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> Apologies for stuffing your mailboxes.. Figured it out. I use the superclass method of the ClassBuilder class. Regards, Hari On Jul 10, 2014, at 1:03 PM, Hari Balaraman wrote: > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari > From casey.obrien.r at gmail.com Fri Jul 11 00:06:21 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Thu, 10 Jul 2014 22:06:21 -0700 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: On a useless cellphone right now. IIRC, you can do something like Preferences explore This should give you a view into the preferences object. I think you should be looking to disable (set to false) something like 'focusFollowsMouse' but again, I can't look right now. Hopefully I haven't led you too far astray here, but I think it's in there. If you don't find it, bug me again and I'll figure it out for sure. Casey > On Jul 10, 2014, at 10:03 AM, Hari Balaraman wrote: > > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari > > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From juan at jvuletich.org Fri Jul 11 06:50:04 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 11 Jul 2014 08:50:04 -0300 Subject: [Cuis] Two questions In-Reply-To: <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <3F16A774-08E4-437C-8A8A-CE6C3BD65BBC@gmail.com> Message-ID: <53BFCF6C.5050005@jvuletich.org> Hi Hari, On 7/10/2014 11:12 PM, Hari Balaraman wrote: > Apologies for stuffing your mailboxes.. Figured it out. I use the superclass method of the ClassBuilder class. > Regards, > Hari > Yes. Just for the record, the text you save on a Browser when you create a new class, is just a Smalltalk expression, a message sent to the class you subclass. Just evaluating such code in any part of your application will create a new class. As you see in any class definition, the instanceVariableNames: is a string comprising variable names, separated by a space. Cheers, Juan Vuletich > On Jul 10, 2014, at 1:03 PM, Hari Balaraman wrote: > >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari >> > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From juan at jvuletich.org Fri Jul 11 06:55:49 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 11 Jul 2014 08:55:49 -0300 Subject: [Cuis] Two questions In-Reply-To: <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <53BFD0C5.5070109@jvuletich.org> Hi Hari, On 7/10/2014 2:03 PM, Hari Balaraman wrote: > Folks, > > I have two questions and many thanks in advance for any suggestions or advice you can offer: > > 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. > > I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. > > This is what I type into my workspace: > > m:= ClassBuilder new. > m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass > > The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. > > 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? > > Best regards, > > Hari Many times I find it useful to give focus to a field by just moving the mouse, without needing a mouse click. If you prefer the more conventional 'click-to-focus' behavior, just evaluate: Preferences disable: #focusFollowsMouse Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). Cheers, Juan Vuletich From davidedc at gmail.com Fri Jul 11 10:35:44 2014 From: davidedc at gmail.com (Davide Della Casa) Date: Fri, 11 Jul 2014 16:35:44 +0100 Subject: [Cuis] Hi list - new Cuis explorer here! Message-ID: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Hi list, as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) Cheers, Davide From hbalaraman at gmail.com Fri Jul 11 18:03:46 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Fri, 11 Jul 2014 19:03:46 -0400 Subject: [Cuis] Two questions In-Reply-To: <53BFD0C5.5070109@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> Message-ID: <0650FFBA-D582-404B-BFE0-BF8E71BB0BB6@gmail.com> Will try my hand at it. Code will probably look really clunky. :) H On Jul 11, 2014, at 7:55 AM, Juan Vuletich wrote: > Hi Hari, > > On 7/10/2014 2:03 PM, Hari Balaraman wrote: >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari > > Many times I find it useful to give focus to a field by just moving the mouse, without needing a mouse click. > > If you prefer the more conventional 'click-to-focus' behavior, just evaluate: > > Preferences disable: #focusFollowsMouse > > Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). > > Cheers, > Juan Vuletich From hbalaraman at gmail.com Sat Jul 12 01:20:21 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Sat, 12 Jul 2014 02:20:21 -0400 Subject: [Cuis] Two questions In-Reply-To: References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> Message-ID: <0C35F9E3-5FA4-4610-A640-EA10C7A1259D@gmail.com> Hi Casey, Thanks! Best regards, Hari On Jul 11, 2014, at 1:06 AM, Casey Ransberger wrote: > On a useless cellphone right now. IIRC, you can do something like > > Preferences explore > > This should give you a view into the preferences object. I think you should be looking to disable (set to false) something like 'focusFollowsMouse' but again, I can't look right now. > > Hopefully I haven't led you too far astray here, but I think it's in there. If you don't find it, bug me again and I'll figure it out for sure. > > Casey > >> On Jul 10, 2014, at 10:03 AM, Hari Balaraman wrote: >> >> Folks, >> >> I have two questions and many thanks in advance for any suggestions or advice you can offer: >> >> 1. I was wondering about how to create new classes from the workspace rather than changing a class definition in a browser and saving. >> >> I?ve been attempting to use "newSubclassOf: newSuper type: type instanceVariables: instVars from: oldClass" for ClassBuilder in Kernel-Classes but cannot decipher how to format the instance variables argument. >> >> This is what I type into my workspace: >> >> m:= ClassBuilder new. >> m newSubclassOf: NewClass type: Object instanceVariables: ?newinstvariable' from: SubClassOfNewClass >> >> The reason I am doing is - I am trying to find a way to generate new class definitions in my application from a GUI rather than type things into a browser. So this is my first step. >> >> 2. Why does the mouse always highlight the window it is over? I find that more often than not, when I highlight text from one workspace or from a browser window and look to copy into a workspace or inspector, I move the arrow out of the way to focus on what I am typing but therefore end up typing or deleting in some other window because that window is not automatically brought to the front by the pointer. Is there a way I can change this default behaviour? >> >> Best regards, >> >> Hari >> >> >> _______________________________________________ >> Cuis mailing list >> Cuis at jvuletich.org >> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From casey.obrien.r at gmail.com Sat Jul 12 09:10:43 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Sat, 12 Jul 2014 07:10:43 -0700 Subject: [Cuis] Two questions In-Reply-To: <53BFD0C5.5070109@jvuletich.org> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> Message-ID: <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> > On Jul 11, 2014, at 4:55 AM, Juan Vuletich wrote: > > Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). If Hari doesn't get around to it in the next week or so, someone bug me and I'll do it. We're "fighting the power" a bit on this, and if we don't make the compu-normative behavior the default (ugh) we should definitely make the preference easy to discover and change for newcomers. On the subject: since most prefs are just enable/disable, what do folks think about a small project to put them all in the menu system (rather than some heavy-handed PreferenceBrowser?) The snags will all be non-Boolean prefs which would need either submenus or dialogs. My thought is that the mainstay of preference interaction could be programmatically generated based on the prefs object's structure except in unusual cases (which would need to be handled with cleverness.) Thoughts? Please shoot holes in my hot air balloon, dear friends. --C From juan at jvuletich.org Tue Jul 15 07:54:25 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 15 Jul 2014 09:54:25 -0300 Subject: [Cuis] Hi list - new Cuis explorer here! In-Reply-To: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> References: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Message-ID: <53C52481.9040808@jvuletich.org> Welcome, Davide! Feel free to ask any questions. And keep us posted on your progress! Cheers, Juan Vuletich On 11/07/2014 12:35 p.m., Davide Della Casa wrote: > Hi list, > > as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. > > Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. > > So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? > > I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) > > Cheers, > Davide > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > From juan at jvuletich.org Tue Jul 15 07:57:08 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 15 Jul 2014 09:57:08 -0300 Subject: [Cuis] Two questions In-Reply-To: <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <9BB45C6D-813E-4CD7-8C11-968D66C77464@gmail.com> <53BFD0C5.5070109@jvuletich.org> <02F9AE91-385D-472A-A9D8-C72CC7BB6B7A@gmail.com> Message-ID: <53C52524.3020608@jvuletich.org> On 12/07/2014 11:10 a.m., Casey Ransberger wrote: >> On Jul 11, 2014, at 4:55 AM, Juan Vuletich wrote: >> >> Maybe it could be useful to have this (and maybe others) accessible from the World / Preferences menu. Feel free to implement it, and publish the code (mail attach, Git pull request, any means is ok). > If Hari doesn't get around to it in the next week or so, someone bug me and I'll do it. We're "fighting the power" a bit on this, and if we don't make the compu-normative behavior the default (ugh) we should definitely make the preference easy to discover and change for newcomers. > > On the subject: since most prefs are just enable/disable, what do folks think about a small project to put them all in the menu system (rather than some heavy-handed PreferenceBrowser?) > > The snags will all be non-Boolean prefs which would need either submenus or dialogs. My thought is that the mainstay of preference interaction could be programmatically generated based on the prefs object's structure except in unusual cases (which would need to be handled with cleverness.) > > Thoughts? Please shoot holes in my hot air balloon, dear friends. > > --C > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org > Haven't thought much about all this, but please keep the ball rolling. First, do it just for booleans. I'm sure playing with it will help further ideas to appear... Cheers, Juan Vuletich From casey.obrien.r at gmail.com Wed Jul 16 01:10:36 2014 From: casey.obrien.r at gmail.com (Casey Ransberger) Date: Tue, 15 Jul 2014 23:10:36 -0700 Subject: [Cuis] Hi list - new Cuis explorer here! In-Reply-To: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> References: <3FC1175D-8E86-49EA-A61C-D73407F685E6@gmail.com> Message-ID: <92380A4D-2007-4822-BEFC-B68C19C4E233@gmail.com> Compiling to JavaScript is currently the apsis of cool. I checked out your projects and I think they're stellar. Hello, welcome, and good to have you around:) --C > On Jul 11, 2014, at 8:35 AM, Davide Della Casa wrote: > > Hi list, > > as I was mentioning to Juan just now in private email, I knew of Cuis since a couple of years back, but recently I?ve seen a diagram ( http://squeakingalong.files.wordpress.com/2010/08/squeaketroyspharocuis.png ) that got my interest again. > > Basically I?m working on Zombie Kernel ( https://github.com/davidedc/Zombie-Kernel ), a wannabe alternative to Lively Kernel. It?s built starting from Morphic.js ( https://github.com/jmoenig/morphic.js ) although the paths might be diverging. > > So I?m adding Layouts, I?d say they are half-working now, and Cuis is a saver because it sheds a ton of cruft from other alternatives, and it actually works stably. It?s easy to navigate the code and to port it, so I?m picking up many of the naming conventions and patterns as well, they seem to be ?more founded? than the ones in Morphic.js. Zombie Kernel is done in CoffeeScript and I?m surprised about how quick I can port/adapt code from Cuis. The two languages are different, but in practice the two translate very well? > > I?ll follow the project and probably post some basic questions - you?ll have to be patient there ;-) > > Cheers, > Davide > _______________________________________________ > Cuis mailing list > Cuis at jvuletich.org > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org From hbalaraman at gmail.com Thu Jul 24 00:00:00 2014 From: hbalaraman at gmail.com (Hari Balaraman) Date: Thu, 24 Jul 2014 01:00:00 -0400 Subject: [Cuis] Styled Text Editor In-Reply-To: <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> Message-ID: Folks, I?ve been playing around with the Styled Text Editor and noticed two issues, one is that the default size of the SystemWindow is smaller than the toolbar and the second is that when the window is resized, every part of the toolbar becomes progressively transparent other than the second PluggableFilteringDropDownListMorph (relating to CharacterStyle). For the SystemWindow size on initialisation, I have used a very inelegant hack in the editFancierStyledText class method for the SystemWindow class by specifying a large enough morphExtent to the SystemWindow. But for the lack of transparency of the second PluggableFilteringDropDownListMorph on the resizing of the overall SystemWindow, I am lost. On examining and comparing, in inspectors, the two PluggableFilteringDropDownListMorphs in the toolbar, I find the only difference to be in the labels. I attach screenshots to illustrate the behaviour. Editor window fully extended outwards. Editor window partially constrained. Editor window fully constrained with second toolbar not transparent. I had one question for any folks that might know. What format does the text editor save files in? I saved it on the filesystem but couldn?t access it using textedit. If it isn?t accessible by non-smalltalk editors, is there a text editor you know of that I can install that will allow me to read and write to files on the filesystems. I started down that path last week writing to plaintext files (for an app I am building) but wanted to avoid reinventing the wheel in case it has already been done (also why I got pretty excited today about the stylised text editor.) On the issue of enabling and disabling the focusFollowsMouse preference, I attach an awful hack to the Preferences menu that unfortunately gets the job done for me in the latest image. Best regards, Hari -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.46.30 AM.png Type: image/png Size: 70022 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.46.46 AM.png Type: image/png Size: 68752 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2014-07-24 at 12.47.03 AM.png Type: image/png Size: 22165 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Morphic-Menus.st Type: application/octet-stream Size: 80291 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: System-Support.st Type: application/octet-stream Size: 316722 bytes Desc: not available URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From juan at jvuletich.org Fri Jul 25 08:20:40 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Fri, 25 Jul 2014 10:20:40 -0300 Subject: [Cuis] Styled Text Editor In-Reply-To: References: <20140626080108.7da7c4bbeb2c16ca11cce734@whidbey.com> <32682ADA-D827-4037-ABF4-276F8F85DA8B@gmail.com> <53AD5DCF.9080909@jvuletich.org> <46179A8C-435A-4108-843A-AB76315886FF@gmail.com> <53AEC470.9070009@jvuletich.org> <53B2F05D.4000300@jvuletich.org> <939178AB-0D82-4711-BDBA-36E457D3C454@gmail.com> Message-ID: <53D259A8.4050606@jvuletich.org> Hi Hari, On 7/24/2014 2:00 AM, Hari Balaraman wrote: > Folks, > > I?ve been playing around with the Styled Text Editor and noticed two > issues, one is that the default size of the SystemWindow is smaller > than the toolbar and the second is that when the window is resized, > every part of the toolbar becomes progressively transparent *_other > than_* the second PluggableFilteringDropDownListMorph (relating to > CharacterStyle). > > For the SystemWindow size on initialisation, I have used a very > inelegant hack in the editFancierStyledText class method for the > SystemWindow class by specifying a large enough morphExtent to the > SystemWindow. > > But for the lack of transparency of the > second PluggableFilteringDropDownListMorph on the resizing of the > overall SystemWindow, I am lost. > > On examining and comparing, in inspectors, the two > PluggableFilteringDropDownListMorphs in the toolbar, I find the only > difference to be in the labels. > > > I attach screenshots to illustrate the behaviour. > Thanks for the report, Hari. I recently did some changes in morphic submorph clipping. Clipping is now done only on the first submorph. This is enough for scroll panes and such. And windows (together with most morphs) don't really need clipping, but good layout handling. I just committed a new version of StyledTextEditor to fix this. > I had one question for any folks that might know. What format does the > text editor save files in? I saved it on the filesystem but couldn?t > access it using textedit. If it isn?t accessible by non-smalltalk > editors, is there a text editor you know of that I can install that > will allow me to read and write to files on the filesystems. I started > down that path last week writing to plaintext files (for an app I am > building) but wanted to avoid reinventing the wheel in case it has > already been done (also why I got pretty excited today about the > stylised text editor.) Right now, we are saving files with SmartRefStream, as Smalltalk serialized objects. The code to support RTF is there, but I don't really like RTF, especially as it doesn't have a concept of styles. I think the best would be to be able to save and read .MD (markdown) format. And use a set of styles that match what markdown provides. Someone would need to code this, though. But I don't think it would be too hard if you or anybody wants to give it a try. > On the issue of enabling and disabling the focusFollowsMouse > preference, I attach an awful hack to the Preferences menu that > unfortunately gets the job done for me in the latest image. > > Best regards, > > Hari > I integrated your code in Cuis today. I think it makes sense, and is not hacky at all. Cheers, Juan Vuletich -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ken.Dickey at whidbey.com Fri Jul 25 23:48:07 2014 From: Ken.Dickey at whidbey.com (Ken Dickey) Date: Fri, 25 Jul 2014 21:48:07 -0700 Subject: [Cuis] Some Colors are required Message-ID: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> Juan, I tripped over a bug when (re)setting color dictionaries -- some colors are required by the UI. E.g. Color transparent. The attached code makes sure colors with these names exist in the new dictionary. Please update the base. Thanks much! -KenD ========== To see the bug Feature require: 'XKCD-NamedColors'. Color setColorNamesDict: (Color xkcdColorDictionary). ========== -------------- next part -------------- A non-text attachment was scrubbed... Name: Color_class-setColorNamesDict.st Type: application/octet-stream Size: 654 bytes Desc: not available URL: From juan at jvuletich.org Tue Jul 29 07:03:27 2014 From: juan at jvuletich.org (Juan Vuletich) Date: Tue, 29 Jul 2014 09:03:27 -0300 Subject: [Cuis] Some Colors are required In-Reply-To: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> References: <20140725214807.e928f005fcc63ce93f90baae@whidbey.com> Message-ID: <53D78D8F.9080605@jvuletich.org> Thanks Ken, It is in the update stream now. Cheers, Juan Vuletich On 7/26/2014 1:48 AM, Ken Dickey wrote: > Juan, > > I tripped over a bug when (re)setting color dictionaries -- some colors are required by the UI. E.g. Color transparent. > > The attached code makes sure colors with these names exist in the new dictionary. > > Please update the base. > > Thanks much! > -KenD > > ========== To see the bug > Feature require: 'XKCD-NamedColors'. > Color setColorNamesDict: (Color xkcdColorDictionary). > ========== >