From falink at free.fr Thu Aug 13 18:15:43 2015 From: falink at free.fr (Fredrik Alink) Date: Thu Aug 13 18:19:17 2015 Subject: [Newbies] How to reopen a collapsed Morph from another Morph? Message-ID: <1439489743871-4842627.post@n4.nabble.com> Hi, Let me shortly introduce myself. I'm new in this Forum, but not at all with Smalltalk. I did a private Smalltalk project under IBM VisualAge Smalltalk 6.0 (see http://imarch.free.fr/), but at a HD crash 10 years ago I lost both VisualAge and the project, except for the documentation. Recently I decided to rebuild my former private project and I installed Squeak on my iMac. Essentially, main differences between the two are VisualAge's Widgets against Squeak's Morphs. The Morph problem that I met: I create a Morph and from that I create another one and collapse the original one: (morphA := )MorphA new morphA: (statements) morphB := MorphB new. self collapse. When I close morphB, I want morphA to reopen, but I did not find any methods for that: morphB: (statements) morphA ?uncollapse ?... how?? self currentWorld removeMorph: self. I found a sort of ?solution?, but is leaves a residu collapsed morph on the screen: morphB: (statements) morphA currentWorld removeMorph: morphA. morphA openInWorld. self currentWorld removeMorph: self. morphA reappears opened but the collapsed morphA is still visible on the display. ?restore display (r)? does nothing, but clicking on any of the collapsed morph's actions x, v, + or ? let it disappear. Remarks: Update Squeak ends up in an error message. Monticello Browser can't get over 30 versions and ends up in an error message. -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From unoduetre at poczta.onet.pl Thu Aug 13 21:37:51 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Thu Aug 13 21:36:06 2015 Subject: [Newbies] How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439489743871-4842627.post@n4.nabble.com> (from falink@free.fr on Thu Aug 13 19:15:43 2015) Message-ID: <1439501871.15880.0@mglap> Hi and welcome to the Squeak world! If you check the implementation of Morph>>collapse method, it is the following (in Squeak 4.5): collapse CollapsedMorph new beReplacementFor: self The problem is the method returning self instead of returning the CollapsedMorph. You can either modify the method (discouraged), add your own method to the Morph class (remember to use the star prefix in the protocol name, and to use the proper name to assign it to a proper package), or just use the content of the method directly in your code. My preferred way to do it would be adding a method to the Morph class. Let me assume the class category of my package is MyPackage. Just add the protocol *MyPackage with the method: myPackageCollapse ^ collapsedMorph new beReplacementFor: self. Now you can do: |morph collapsedMorph| morph := Morph new. "collapse it" collapsedMorph := morph collapse. "uncollapse it" collapsedMorph collapseOrExpand. Best wishes, Mateusz From unoduetre at poczta.onet.pl Thu Aug 13 21:39:16 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Thu Aug 13 21:38:06 2015 Subject: [Newbies] How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439489743871-4842627.post@n4.nabble.com> (from falink@free.fr on Thu Aug 13 19:15:43 2015) References: <1439489743871-4842627.post@n4.nabble.com> Message-ID: <1439501956.15880.1@mglap> Dnia 13.08.2015 19:15:43, Fredrik Alink napisa?(a): > Hi, > > Let me shortly introduce myself. > I'm new in this Forum, but not at all with Smalltalk. I did a private > Smalltalk project under IBM VisualAge Smalltalk 6.0 (see > http://imarch.free.fr/), but at a HD crash 10 years ago I lost both > VisualAge and the project, except for the documentation. Recently I > decided > to rebuild my former private project and I installed Squeak on my > iMac. > Essentially, main differences between the two are VisualAge's Widgets > against Squeak's Morphs. Will your project be available on SqueakSource3? From ron at usmedrec.com Fri Aug 14 06:13:36 2015 From: ron at usmedrec.com (Ron Teitelbaum) Date: Fri Aug 14 06:14:05 2015 Subject: [Newbies] How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439489743871-4842627.post@n4.nabble.com> References: <1439489743871-4842627.post@n4.nabble.com> Message-ID: <003201d0d658$5b310630$11931290$@usmedrec.com> > From: Fredrik Alink > Sent: Thursday, August 13, 2015 2:16 PM > To: beginners@lists.squeakfoundation.org > Subject: [Newbies] How to reopen a collapsed Morph from another Morph? > > Hi, > > Let me shortly introduce myself. > I'm new in this Forum, but not at all with Smalltalk. I did a private Smalltalk > project under IBM VisualAge Smalltalk 6.0 (see http://imarch.free.fr/), but at > a HD crash 10 years ago I lost both VisualAge and the project, except for the > documentation. Recently I decided to rebuild my former private project and I > installed Squeak on my iMac. > Essentially, main differences between the two are VisualAge's Widgets > against Squeak's Morphs. > > The Morph problem that I met: > I create a Morph and from that I create another one and collapse the > original one: > > (morphA := )MorphA new > morphA: > (statements) > morphB := MorphB new. > self collapse. > > When I close morphB, I want morphA to reopen, but I did not find any > methods for that: > > morphB: > (statements) > morphA ?uncollapse ?... how?? > self currentWorld removeMorph: self. > See implementors of >> collapseOrExpand on a workspace type in collapseOrExpand and press Alt-b. All the best, Ron Teitelbaum > I found a sort of ?solution?, but is leaves a residu collapsed morph on the > screen: > > morphB: > (statements) > morphA currentWorld removeMorph: morphA. > morphA openInWorld. > self currentWorld removeMorph: self. > > morphA reappears opened but the collapsed morphA is still visible on the > display. ?restore display (r)? does nothing, but clicking on any of the > collapsed morph's actions x, v, + or ? let it disappear. > > > Remarks: > Update Squeak ends up in an error message. > Monticello Browser can't get over 30 versions and ends up in an > error message. > > > > -- > View this message in context: http://forum.world.st/How-to-reopen-a- > collapsed-Morph-from-another-Morph-tp4842627.html > Sent from the Squeak - Beginners mailing list archive at Nabble.com. > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From falink at free.fr Fri Aug 14 09:58:52 2015 From: falink at free.fr (Fredrik Alink) Date: Fri Aug 14 10:02:29 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439501871.15880.0@mglap> References: <1439489743871-4842627.post@n4.nabble.com> <1439501871.15880.0@mglap> Message-ID: <1439546332634-4842727.post@n4.nabble.com> Mateusz Grotek wrote > ....... > collapse > CollapsedMorph new beReplacementFor: self > ....... > |morph collapsedMorph| > morph := Morph new. > "collapse it" > collapsedMorph := morph collapse. > "uncollapse it" > collapsedMorph collapseOrExpand. > ....... That will turn my morphA into a CollapsedMorph, where originally it is a subclass of a subclass of Morph, thus loosing morphA"s behaviour. -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4842727.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From falink at free.fr Fri Aug 14 10:02:14 2015 From: falink at free.fr (Fredrik Alink) Date: Fri Aug 14 10:05:51 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439501956.15880.1@mglap> References: <1439489743871-4842627.post@n4.nabble.com> <1439501956.15880.1@mglap> Message-ID: <1439546534978-4842732.post@n4.nabble.com> Mateusz Grotek wrote > ...... > Will your project be available on SqueakSource3? Tell me about SqueakSource3, where can I find it? As soon as it's running again, for sure I can make it available. By the way, I have Squeak 4.4, should I go to 4.5? -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4842732.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From falink at free.fr Fri Aug 14 19:22:15 2015 From: falink at free.fr (Fredrik Alink) Date: Fri Aug 14 19:25:54 2015 Subject: [Newbies] RE: How to reopen a collapsed Morph from another Morph? In-Reply-To: <003201d0d658$5b310630$11931290$@usmedrec.com> References: <1439489743871-4842627.post@n4.nabble.com> <003201d0d658$5b310630$11931290$@usmedrec.com> Message-ID: <1439580135539-4842922.post@n4.nabble.com> Ron Teitelbaum wrote > ..... > See implementors of >> collapseOrExpand on a workspace type in > collapseOrExpand and press Alt-b. > ..... Sorry,I didn't get a reasonable clue out of that. The thing is when I click a button *inside of* the morph, it vanishes. But when I address the same selector from the outside, the residue stays on the screen. -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4842922.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From ron at usmedrec.com Fri Aug 14 19:57:40 2015 From: ron at usmedrec.com (Ron Teitelbaum) Date: Fri Aug 14 19:58:07 2015 Subject: [Newbies] RE: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439580135539-4842922.post@n4.nabble.com> References: <1439489743871-4842627.post@n4.nabble.com> <003201d0d658$5b310630$11931290$@usmedrec.com> <1439580135539-4842922.post@n4.nabble.com> Message-ID: <023101d0d6cb$7a312290$6e9367b0$@usmedrec.com> > From: Fredrik Alink > Sent: Friday, August 14, 2015 3:22 PM > > Ron Teitelbaum wrote > > ..... > > See implementors of >> collapseOrExpand on a workspace type in > > collapseOrExpand and press Alt-b. > > ..... > > Sorry,I didn't get a reasonable clue out of that. The thing is when I click a > button *inside of* the morph, it vanishes. But when I address the same > selector from the outside, the residue stays on the screen. > Didn't get that from your email sorry. Have a look at Morph>>changed. Calling changed on the container should redraw the morph to remove the residue. All the best, Ron Teitelbaum > > > -- > View this message in context: http://forum.world.st/How-to-reopen-a- > collapsed-Morph-from-another-Morph-tp4842627p4842922.html > Sent from the Squeak - Beginners mailing list archive at Nabble.com. > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From falink at free.fr Fri Aug 14 20:58:43 2015 From: falink at free.fr (Fredrik Alink) Date: Fri Aug 14 21:02:25 2015 Subject: [Newbies] RE: How to reopen a collapsed Morph from another Morph? In-Reply-To: <023101d0d6cb$7a312290$6e9367b0$@usmedrec.com> References: <1439489743871-4842627.post@n4.nabble.com> <003201d0d658$5b310630$11931290$@usmedrec.com> <1439580135539-4842922.post@n4.nabble.com> <023101d0d6cb$7a312290$6e9367b0$@usmedrec.com> Message-ID: <1439585923133-4842944.post@n4.nabble.com> Ron Teitelbaum wrote > ..... > Didn't get that from your email sorry. Have a look at Morph>>changed. > Calling changed on the container should redraw the morph to remove the > residue. > ..... No change, still having the residue. Sorry. -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4842944.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From ron at usmedrec.com Sat Aug 15 00:29:56 2015 From: ron at usmedrec.com (Ron Teitelbaum) Date: Sat Aug 15 00:30:23 2015 Subject: [Newbies] RE: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439585923133-4842944.post@n4.nabble.com> References: <1439489743871-4842627.post@n4.nabble.com> <003201d0d658$5b310630$11931290$@usmedrec.com> <1439580135539-4842922.post@n4.nabble.com> <023101d0d6cb$7a312290$6e9367b0$@usmedrec.com> <1439585923133-4842944.post@n4.nabble.com> Message-ID: <028a01d0d6f1$83791f80$8a6b5e80$@usmedrec.com> Hi Fredrik, Could you post more details like example code that shows the error, and maybe a picture of what you are seeing? Ron > -----Original Message----- > From: beginners-bounces@lists.squeakfoundation.org [mailto:beginners- > bounces@lists.squeakfoundation.org] On Behalf Of Fredrik Alink > Sent: Friday, August 14, 2015 4:59 PM > To: beginners@lists.squeakfoundation.org > Subject: [Newbies] RE: How to reopen a collapsed Morph from another > Morph? > > Ron Teitelbaum wrote > > ..... > > Didn't get that from your email sorry. Have a look at Morph>>changed. > > Calling changed on the container should redraw the morph to remove the > > residue. > > ..... > > No change, still having the residue. Sorry. > > > > -- > View this message in context: http://forum.world.st/How-to-reopen-a- > collapsed-Morph-from-another-Morph-tp4842627p4842944.html > Sent from the Squeak - Beginners mailing list archive at Nabble.com. > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From herbertkoenig at gmx.net Sat Aug 15 06:33:41 2015 From: herbertkoenig at gmx.net (=?UTF-8?Q?Herbert_K=c3=b6nig?=) Date: Sat Aug 15 06:33:46 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439546534978-4842732.post@n4.nabble.com> References: <1439489743871-4842627.post@n4.nabble.com> <1439501956.15880.1@mglap> <1439546534978-4842732.post@n4.nabble.com> Message-ID: <55CEDD45.6060404@gmx.net> Hi Fredrik, Am 14.08.2015 um 12:02 schrieb Fredrik Alink: > By the way, I have Squeak 4.4, should I go to 4.5? current Squeak is 5.0. 4.4 was delivered with the interpreter VM but can run on the faster Cog VM. It uses the old image format. It's the last Squeak where Project saving works. Squeak Projects are like several Desktops in Squeak. 4.5 is it's successor, still old image format. Just recently released: 4.6 is the current Squeak with the old image format and a quite different look. 5.0 comes with the even faster Spur VM which needs a new image format. Otherwise it's 4.6. This is where Squeak development will continue. Whatever your choice, I assume it will make no difference re your collapsed Morph problem. My personal advice is that you move to 5.0 unless you use Squeak projects for e.g. documentation and want to be able to transfer them to other images. In this case stick with 4.4. If you move to 5.0 you may want to save your preferences in 4.4 (Tools in the main docking bar, preferences) and reload them in 5.0. Results are not perfect. Cheers, Herbert From falink at free.fr Sat Aug 15 10:21:52 2015 From: falink at free.fr (Fredrik Alink) Date: Sat Aug 15 10:25:37 2015 Subject: [Newbies] RE: How to reopen a collapsed Morph from another Morph? In-Reply-To: <028a01d0d6f1$83791f80$8a6b5e80$@usmedrec.com> References: <1439489743871-4842627.post@n4.nabble.com> <003201d0d658$5b310630$11931290$@usmedrec.com> <1439580135539-4842922.post@n4.nabble.com> <023101d0d6cb$7a312290$6e9367b0$@usmedrec.com> <1439585923133-4842944.post@n4.nabble.com> <028a01d0d6f1$83791f80$8a6b5e80$@usmedrec.com> Message-ID: <1439634112040-4843032.post@n4.nabble.com> Ron Teitelbaum wrote > Could you post more details like example code that shows the error, and > maybe a picture of what you are seeing? Code: *Class hierarchy:* Morph BaseInterface MainConsole ModelConsole *step 1:* MainConsole new super initialize ( self initScreenItemStates. self openWindow. self openInWorld. owner := self currentWorld) The MainConsole shows up. *Step 2:* (MainConsole) demoButtonClicked self modelConsole: ((ModelConsole new) ?init as in MainConsole? mainConsole: self; yourself); collapse. The ModelConsole shows up, the MainConsole collapses. *Step 3:* (ModelConsole) xButtonClicked "close own Modelprocessor" self mainConsole isNil ifFalse: [ "uncollapse MainConsole: remove and then reactivate" self mainConsole currentWorld removeMorph: (self mainConsole). self mainConsole openInWorld." "disconnect MainConsole" self mainConsole modelConsole: nil. self mainConsole: nil]. "close ModelConsole" ^self currentWorld removeMorph: self The MainConsole shows up, the ModelConsole disppears, but the collapsed MainConsole stays visible on screen. *Step 4:* (MainConsole) exitButtonClicked self modelConsole isNil ifFalse: [self modelConsole exitButtonClickedInMainConsole]. ^self currentWorld removeMorph: self The MainConsole disappears, but the collapsed MainConsole stays visible on screen. Deopending of the order you do the abov, it is still 1 time active, otherwise it is dead. When deaad, it just disappears from the screen when clicking on x, v, + or ?. -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4843032.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From futuhat at gmail.com Sat Aug 15 10:42:00 2015 From: futuhat at gmail.com (=?UTF-8?B?w6FuZ2VsIGFyaWFz?=) Date: Sat Aug 15 10:42:41 2015 Subject: [Newbies] Movies in Squeak Message-ID: Hiya! I'm using Squeak-5.0-All-in-One and I'd like to know how to add some movies in my proyects. I can't find MPEGPlayer? Thank you very much! ?ngel. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150815/a35af1a0/attachment.htm From lewis at mail.msen.com Sat Aug 15 18:28:38 2015 From: lewis at mail.msen.com (David T. Lewis) Date: Sat Aug 15 18:28:40 2015 Subject: [Newbies] Movies in Squeak In-Reply-To: References: Message-ID: <20150815182838.GA21338@shell.msen.com> On Sat, Aug 15, 2015 at 12:42:00PM +0200, ??ngel arias wrote: > Hiya! > > I'm using Squeak-5.0-All-in-One and I'd like to know how to add some movies > in my proyects. I can't find MPEGPlayer??? > > Thank you very much! Hi ??ngel, I'm afraid we may need to look in some older Squeak images to find MPEGPlayer, I'm not sure of its current status (sorry I am away and connot check it right now, but hopefully someone else can speak up with some pointers). Playing MPEG requires a special plugin in the VM also. I don't think that it is provided in the latest Squeak VMs, but I believe that the plugins at squeakvm.org will provide the necessary support. Dave From ron at usmedrec.com Sat Aug 15 20:11:45 2015 From: ron at usmedrec.com (Ron Teitelbaum) Date: Sat Aug 15 20:12:10 2015 Subject: [Newbies] RE: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439634112040-4843032.post@n4.nabble.com> References: <1439489743871-4842627.post@n4.nabble.com> <003201d0d658$5b310630$11931290$@usmedrec.com> <1439580135539-4842922.post@n4.nabble.com> <023101d0d6cb$7a312290$6e9367b0$@usmedrec.com> <1439585923133-4842944.post@n4.nabble.com> <028a01d0d6f1$83791f80$8a6b5e80$@usmedrec.com> <1439634112040-4843032.post@n4.nabble.com> Message-ID: <05a501d0d796$9c642760$d52c7620$@usmedrec.com> > From: Fredrik Alink > Sent: Saturday, August 15, 2015 6:22 AM > > Ron Teitelbaum wrote > > Could you post more details like example code that shows the error, > > and maybe a picture of what you are seeing? > > > [Ron Teitelbaum] Thanks that is much more clear. Try replacing collapse with collapseOrExpand. Then > self mainConsole currentWorld removeMorph: (self mainConsole). > self mainConsole openInWorld. With self mainConsole collapseOrExpand. I think the issue here is that the console changed from a SystemWindow to a CollapsedMorph. To close the CollapsedMorph you need to call getCollapsedFrame and close that. collapseOrExpand toggles the state between collapsed and expanded and takes care of that for you. All the best, Ron > Code: > > *Class hierarchy:* > > Morph > BaseInterface > MainConsole > ModelConsole > > *step 1:* > > MainConsole new > super initialize > ( > self initScreenItemStates. > self openWindow. > self openInWorld. > owner := self currentWorld) > > The MainConsole shows up. > > *Step 2:* > > (MainConsole) demoButtonClicked > self > modelConsole: ((ModelConsole new) ?init as in MainConsole? > mainConsole: self; > yourself); > collapse. > > The ModelConsole shows up, the MainConsole collapses. > > *Step 3:* > > (ModelConsole) xButtonClicked > "close own Modelprocessor" > self mainConsole isNil > ifFalse: [ > "uncollapse MainConsole: remove and then reactivate" > self mainConsole currentWorld removeMorph: (self mainConsole). > self mainConsole openInWorld." > "disconnect MainConsole" > self mainConsole modelConsole: nil. > self mainConsole: nil]. > "close ModelConsole" > ^self currentWorld removeMorph: self > > The MainConsole shows up, the ModelConsole disppears, but the collapsed > MainConsole stays visible on screen. > > *Step 4:* > > (MainConsole) exitButtonClicked > self modelConsole isNil > ifFalse: [self modelConsole exitButtonClickedInMainConsole]. > ^self currentWorld removeMorph: self > > The MainConsole disappears, but the collapsed MainConsole stays visible on > screen. Deopending of the order you do the abov, it is still 1 time active, > otherwise it is dead. When deaad, it just disappears from the screen when > clicking on x, v, + or ?. > > > > -- > View this message in context: http://forum.world.st/How-to-reopen-a- > collapsed-Morph-from-another-Morph-tp4842627p4843032.html > Sent from the Squeak - Beginners mailing list archive at Nabble.com. > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From unoduetre at poczta.onet.pl Sat Aug 15 21:53:58 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Sat Aug 15 21:53:39 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439546534978-4842732.post@n4.nabble.com> (from falink@free.fr on Fri Aug 14 11:02:14 2015) Message-ID: <1439675638.9270.0@mglap> Dnia 14.08.2015 11:02:14, Fredrik Alink napisa?(a): > Mateusz Grotek wrote > > ...... > > Will your project be available on SqueakSource3? > > Tell me about SqueakSource3, where can I find it? As soon as it's > running > again, for sure I can make it available. > > By the way, I have Squeak 4.4, should I go to 4.5? > > > > -- IMHO if there is nothing in your project which needs 4.4, you can move directly 5.0. To get it just go to http://squeak.org, click on the Download button, unzip, go to the unzipped directory and run either squeak.sh (on Linux), Squeak-5.0-All-in-One.app (on Mac) or squeak.bat (on Windows). That's all. SqueakSource3 is a code repository (like github) for Monticello (an equivalent of git or svn). To use it go to: http://ss3.gemstone.com, click Register Member in the left panel and follow the instructions. After registering yourself you can register your project in the left panel. To use it in Squeak run Tools->Monticello browser. Click +Repository and fill the template (remember to change www.squeaksource.com to ss3.gemstone.com). After adding the repository you can add your package (+Package). The rules are simple: 1. All class categories which start with the name of a package belong to the package (e.g. Kernel-Chronology and Kernel-Exceptions class categories belong to the package Kernel). 2. Besides class categories you can add methods to classes from other packages. To make them belong to your package you have to prepend the protocol name with * (e.g. *System-Finalization protocol is a part of the System package, despite it being in the Object class). To see an example browse the class Object. To read more about Monticello see e.g. section 6.3 of http://squeakbyexample.org/SBE.pdf . Some, probably a bit outdated documentation is also available here: http://www.wiresong.ca/monticello/v1/docs/ . If you have any questions, I'll be glad to answer them. Mateusz From unoduetre at poczta.onet.pl Sat Aug 15 22:03:54 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Sat Aug 15 22:03:37 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439546332634-4842727.post@n4.nabble.com> (from falink@free.fr on Fri Aug 14 10:58:52 2015) Message-ID: <1439676234.9270.1@mglap> Dnia 14.08.2015 10:58:52, Fredrik Alink napisa?(a): > Mateusz Grotek wrote > > ....... > > collapse > > CollapsedMorph new beReplacementFor: self > > ....... > > |morph collapsedMorph| > > morph := Morph new. > > "collapse it" > > collapsedMorph := morph collapse. > > "uncollapse it" > > collapsedMorph collapseOrExpand. > > ....... > > That will turn my morphA into a CollapsedMorph, where originally it > is a > subclass of a subclass of Morph, thus loosing morphA"s behaviour. > > Your original morph is still referenced by the variable morph in the code above. collapsedMorph is a CollapsedMorph instance. You just need to keep it until you want to expand it. After expanding you throw it away. | originalMorph collapsedMorph | originalMorph := yourMorph. "Your original morph is always here. It doesn't turn into a CollapsedMorph." ... ... ... collapsedMorph := morph collapse. "This is the CollapsedMorph. You need to keep it only until expanding." ... ... "You can still use your original Morph available in the variable originalMorph here." ... collapsedMorph collapseOrExpand. "Expanding it. Now you can ignore the collapsedMorph variable." ... From futuhat at gmail.com Sun Aug 16 00:40:00 2015 From: futuhat at gmail.com (=?UTF-8?B?w6FuZ2VsIGFyaWFz?=) Date: Sun Aug 16 00:40:42 2015 Subject: [Newbies] Movies in Squeak In-Reply-To: <20150815182838.GA21338@shell.msen.com> References: <20150815182838.GA21338@shell.msen.com> Message-ID: Thanks, Dave! I'll do some research. :-) On Sat, Aug 15, 2015 at 8:28 PM, David T. Lewis wrote: > On Sat, Aug 15, 2015 at 12:42:00PM +0200, ??ngel arias wrote: > > Hiya! > > > > I'm using Squeak-5.0-All-in-One and I'd like to know how to add some > movies > > in my proyects. I can't find MPEGPlayer??? > > > > Thank you very much! > > > Hi ??ngel, > > I'm afraid we may need to look in some older Squeak images to > find MPEGPlayer, I'm not sure of its current status (sorry I am > away and connot check it right now, but hopefully someone else can > speak up with some pointers). > > Playing MPEG requires a special plugin in the VM also. I don't think > that it is provided in the latest Squeak VMs, but I believe that the > plugins at squeakvm.org will provide the necessary support. > > Dave > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150816/f4760901/attachment.htm From lostgweilo at gmail.com Sun Aug 16 15:50:20 2015 From: lostgweilo at gmail.com (lostgweilo) Date: Sun Aug 16 15:54:12 2015 Subject: [Newbies] Incomplete Seaside instruction on squeak.org? Message-ID: <1439740220846-4843294.post@n4.nabble.com> Hello all, I need help to get Seaside up and running on Squeak. I have Squeak running (Squeak5.0, latest update: #15113, Image format 6521 (32 bit)) I went to http://www.seaside.st/ and clicked "Squeak Smalltalk" in the right column. This sent me me to http://squeak.org/projects/#seaside I clicked on "Quick Install" which opens a window with the following snippet: Installer squeaksource project: 'MetacelloRepository'; install: 'ConfigurationOfSeaside3'. (Smalltalk at: #ConfigurationOfSeaside3) load. I evaluated that, and it runs without error, but I don't know what to do next. How do I start Seaside? Nothing is getting served on localhost, and I don't know how to specify the adapter and the port or start any server. I tried to follow instructions from multiple different tutorials and they all want me to bring up a kind of Seaside control panel UI that appears to be Pharo specific and did not get loaded on Squeak (I can't find it in any menu). Or else, they refer to Kom server and Adapter classes that did not get loaded either, and I don't know where to get them from. I tried to load a Kom server package separately, and that did not seem to help, I still don't have any subclass of WAServerAdaptor loaded. I have been poking around for a few days now and I am getting nowhere. I hope someone can help me. -- Lostgweilo -- View this message in context: http://forum.world.st/Incomplete-Seaside-instruction-on-squeak-org-tp4843294.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From falink at free.fr Sun Aug 16 15:51:21 2015 From: falink at free.fr (Fredrik Alink) Date: Sun Aug 16 15:55:13 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439676234.9270.1@mglap> References: <1439489743871-4842627.post@n4.nabble.com> <1439501871.15880.0@mglap> <1439546332634-4842727.post@n4.nabble.com> <1439676234.9270.1@mglap> Message-ID: <1439740281361-4843295.post@n4.nabble.com> Mateusz Grotek wrote > Your original morph is still referenced by the variable morph in the > code above. collapsedMorph is a CollapsedMorph instance. You just need > to keep it until you want to expand it. After expanding you throw it > away. > > | originalMorph collapsedMorph | > originalMorph := yourMorph. "Your original morph is always here. It > doesn't turn into a CollapsedMorph." > ... > ... > ... > collapsedMorph := morph collapse. "This is the CollapsedMorph. You > need to keep it only until expanding." > ... > ... "You can still use your original Morph available in the variable > originalMorph here." > ... > collapsedMorph collapseOrExpand. "Expanding it. Now you can ignore > the collapsedMorph variable." > ... I am trying to understand what you mean. Since I'm talking about 2 concurrent Morphs, I implemented your remarks like this: MainConsole demoButtonClicked morph := ModelConsole new. self modelConsole: morph. "handshake" collapsedMorph := self myPackageCollapse. morph mainConsole: self. "handshake" morph collapsedConsole: collapsedMorph. "handshake" ModelConsole xButtonClicked | collapsedMorph expandedMorph | "close all running Modelprocessors" " to be defined! " "close own Modelprocessor" self mainConsole isNil ifFalse: [ expandedMorph := self mainConsole. collapsedMorph := self collapsedConsole. "uncollapse MainConsole" collapsedMorph collapseOrExpand. "release handshakes" expandedMorph modelConsole: nil. self mainConsole: nil]. "Close ModelConsole" ^self currentWorld removeMorph: self This really solves the problem, *except* for the following situation: Step 1: open the MainConsole Step 2: MainConsole > demoButtonClicked: the ModelConsole opens, the MainConsole collapses *Step 3*: click on the - sign of the collapsed MainConsole to uncollapse it *Step 4*: MainConsole > minimizeButtonClicked: to collapse it again Step 5: ModelConsole > xButtonClicked: the ModelConsole closes, the MainConsole opens, *but* an artefact of the collapsed MainConsole stays on the screen. ..... Step 6: click on the - sign of the artefact and it disappears ..... Step 7: MainConsole > exitButtonClicked: the MainConsole closes. ..... or: Step 6: MainConsole > exitButtonClicked: the MainConsole closes but the artefact stays *as active *MainConsole Step 7: click on the - sign of the collapsed MainConsole to uncollapse it Step 8: MainConsole > exitButtonClicked: the MainConsole closes. Were: MainConsole > exitButtonClicked ^self currentWorld removeMorph: self and: MainConsole > minimizeButtonClicked ^self collapse So, much better but not perfect ...... -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4843295.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From falink at free.fr Sun Aug 16 15:53:14 2015 From: falink at free.fr (Fredrik Alink) Date: Sun Aug 16 15:57:06 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439675638.9270.0@mglap> References: <1439489743871-4842627.post@n4.nabble.com> <1439501956.15880.1@mglap> <1439546534978-4842732.post@n4.nabble.com> <1439675638.9270.0@mglap> Message-ID: <1439740394372-4843297.post@n4.nabble.com> Mateusz Grotek wrote > IMHO if there is nothing in your project which needs 4.4, you can move > directly 5.0. To get it just go to http://squeak.org, click on the > Download button, unzip, go to the unzipped directory and run either > squeak.sh (on Linux), Squeak-5.0-All-in-One.app (on Mac) or squeak.bat > (on Windows). That's all. > > ....... Yesterday I moved to the Squeak-5.0-All-in-One.app without any problems. -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4843297.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From sean at clipperadams.com Sun Aug 16 18:03:15 2015 From: sean at clipperadams.com (Sean P. DeNigris) Date: Sun Aug 16 18:07:08 2015 Subject: [Newbies] Re: Movies in Squeak In-Reply-To: References: Message-ID: <1439748195658-4843343.post@n4.nabble.com> futuhat wrote > I'd like to know how to add some movies > in my proyects. Maybe this can help, but no promises... haven't looked at it since 2010 http://forum.world.st/ANN-SqueakMovieMorph-Alpha-plays-any-video-file-playable-by-QuickTime-tt3168531.html ----- Cheers, Sean -- View this message in context: http://forum.world.st/Movies-in-Squeak-tp4843034p4843343.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From futuhat at gmail.com Mon Aug 17 16:04:22 2015 From: futuhat at gmail.com (=?UTF-8?B?w6FuZ2VsIGFyaWFz?=) Date: Mon Aug 17 16:05:04 2015 Subject: [Newbies] Re: Movies in Squeak In-Reply-To: <1439748195658-4843343.post@n4.nabble.com> References: <1439748195658-4843343.post@n4.nabble.com> Message-ID: Thanks, Sean! I'll have a good look at it! :-) Cheers, ?ngel. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150817/b2d25ea8/attachment.htm From unoduetre at poczta.onet.pl Mon Aug 17 18:56:07 2015 From: unoduetre at poczta.onet.pl (Mateusz Grotek) Date: Mon Aug 17 18:54:49 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439740281361-4843295.post@n4.nabble.com> (from falink@free.fr on Sun Aug 16 16:51:21 2015) Message-ID: <1439837767.19279.0@mglap> > I am trying to understand what you mean. Since I'm talking about 2 > concurrent Morphs, I implemented your remarks like this: > > > MainConsole demoButtonClicked > morph := ModelConsole new. > self modelConsole: morph. "handshake" > collapsedMorph := self myPackageCollapse. > morph mainConsole: self. "handshake" > morph collapsedConsole: collapsedMorph. "handshake" > > ModelConsole xButtonClicked > | collapsedMorph expandedMorph | > "close all running Modelprocessors" > " to be defined! " > "close own Modelprocessor" > self mainConsole isNil > ifFalse: [ > expandedMorph := self mainConsole. > collapsedMorph := self collapsedConsole. > "uncollapse MainConsole" > collapsedMorph collapseOrExpand. > "release handshakes" > expandedMorph modelConsole: nil. > self mainConsole: nil]. > "Close ModelConsole" > ^self currentWorld removeMorph: self > > This really solves the problem, *except* for the following situation: > Step 1: open the MainConsole > Step 2: MainConsole > demoButtonClicked: the ModelConsole opens, the > MainConsole collapses > *Step 3*: click on the - sign of the collapsed MainConsole to > uncollapse it > *Step 4*: MainConsole > minimizeButtonClicked: to collapse it again > Step 5: ModelConsole > xButtonClicked: the ModelConsole closes, the > MainConsole opens, *but* an artefact of the collapsed MainConsole > stays on > the screen. > ..... > Step 6: click on the - sign of the artefact and it disappears ..... > Step 7: MainConsole > exitButtonClicked: the MainConsole closes. > ..... or: > Step 6: MainConsole > exitButtonClicked: the MainConsole closes but > the > artefact stays *as active *MainConsole > Step 7: click on the - sign of the collapsed MainConsole to > uncollapse it > Step 8: MainConsole > exitButtonClicked: the MainConsole closes. > > Were: > MainConsole > exitButtonClicked > ^self currentWorld removeMorph: self > > and: > MainConsole > minimizeButtonClicked > ^self collapse > > So, much better but not perfect ...... > > Hi, It's hard to tell what is wrong without interacting with your code. If you can put your code to SqueakSource3 then I or someone else might be able to help you. The only suggestion that comes to my mind by looking at the example above is that you can not only remove your console morph, but also the CollapsedMorph. Besides that, imho it's better to use the self delete, than to do things like self currentWorld removeMorph: self. In this way you can just do: morph delete. collapsedMorph delete. Nevertheless it's just a wild guess and I cannot tell anything without interacting with your app. Best wishes, Mateusz From falink at free.fr Wed Aug 19 08:40:13 2015 From: falink at free.fr (Fredrik Alink) Date: Wed Aug 19 08:44:25 2015 Subject: [Newbies] Re: How to reopen a collapsed Morph from another Morph? In-Reply-To: <1439837767.19279.0@mglap> References: <1439489743871-4842627.post@n4.nabble.com> <1439501871.15880.0@mglap> <1439546332634-4842727.post@n4.nabble.com> <1439676234.9270.1@mglap> <1439740281361-4843295.post@n4.nabble.com> <1439837767.19279.0@mglap> Message-ID: <1439973613419-4843972.post@n4.nabble.com> Mateusz Grotek wrote > It's hard to tell what is wrong without interacting with your code. If > you can put your code to SqueakSource3 then I or someone else might be > able to help you. The only suggestion that comes to my mind by looking > at the example above is that you can not only remove your console > morph, but also the CollapsedMorph. Besides that, imho it's better to > use the self delete, than to do things like self currentWorld > removeMorph: self. In this way you can just do: morph delete. > collapsedMorph delete. Nevertheless it's just a wild guess and I cannot > tell anything without interacting with your app. > > Best wishes, > Mateusz I want to thank all for thinking about the problem with me. It was of much help. And 'morph delete' works fine. Since the MainConsole is not a part of my model - I just created it to play with it for a better understanding of Morph (see my first message, Morph is new for me) - I won't put anymore efforts in it, so no automatic collapse. As soon as my model runs, I'll put my code on SqueakSource3, but that might last a while ....., say months. Regards, Fredrik -- View this message in context: http://forum.world.st/How-to-reopen-a-collapsed-Morph-from-another-Morph-tp4842627p4843972.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From pdebruic at gmail.com Thu Aug 20 15:43:28 2015 From: pdebruic at gmail.com (Paul DeBruicker) Date: Thu Aug 20 15:47:49 2015 Subject: [Newbies] Re: Incomplete Seaside instruction on squeak.org? In-Reply-To: <1439740220846-4843294.post@n4.nabble.com> References: <1439740220846-4843294.post@n4.nabble.com> Message-ID: <1440085408590-4844550.post@n4.nabble.com> Hi Lostgweilo, There is a bug that prevents the most recent stable version of Seaside from loading into Squeak 5. I'll fix it later today when I have more time. The command you should be using to load it into Squeak is (Installer repository: 'http://www.smalltalkhub.com/mc/Seaside/MetacelloConfigurations/main') install: 'ConfigurationOfSeaside3'. ((Smalltalk at: #ConfigurationOfSeaside3) project version: #stable) load: 'OneClick' I'll try to get that command put in a place of prominence once the bug is fixed. Thanks for being patient and pointing out that things are a bit confusing. Paul lostgweilo wrote > Hello all, > > I need help to get Seaside up and running on Squeak. > I have Squeak running (Squeak5.0, latest update: #15113, Image format 6521 > (32 bit)) > > I went to http://www.seaside.st/ and clicked "Squeak Smalltalk" in the > right column. > This sent me me to http://squeak.org/projects/#seaside > I clicked on "Quick Install" which opens a window with the following > snippet: > Installer squeaksource > project: 'MetacelloRepository'; > install: 'ConfigurationOfSeaside3'. > (Smalltalk at: #ConfigurationOfSeaside3) load. > > I evaluated that, and it runs without error, but I don't know what to do > next. > How do I start Seaside? Nothing is getting served on localhost, and I > don't know how to specify the adapter and the port or start any server. > I tried to follow instructions from multiple different tutorials and they > all want me to bring up a kind of Seaside control panel UI that appears to > be Pharo specific and did not get loaded on Squeak (I can't find it in any > menu). > Or else, they refer to Kom server and Adapter classes that did not get > loaded either, and I don't know where to get them from. > > I tried to load a Kom server package separately, and that did not seem to > help, I still don't have any subclass of WAServerAdaptor loaded. I have > been poking around for a few days now and I am getting nowhere. > > I hope someone can help me. > -- > Lostgweilo -- View this message in context: http://forum.world.st/Incomplete-Seaside-instruction-on-squeak-org-tp4843294p4844550.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From lostgweilo at gmail.com Sat Aug 22 18:11:05 2015 From: lostgweilo at gmail.com (lostgweilo) Date: Sat Aug 22 18:15:40 2015 Subject: [Newbies] Re: Incomplete Seaside instruction on squeak.org? In-Reply-To: <1440085408590-4844550.post@n4.nabble.com> References: <1439740220846-4843294.post@n4.nabble.com> <1440085408590-4844550.post@n4.nabble.com> Message-ID: <1440267065095-4845038.post@n4.nabble.com> Thanks for the help and advice. I tried to evaluate the code you shared and indeed something doesn't work right. A debugger pops up while "Fetching 3.1.4.1 of ConfigurationsOfSeaside3", about 45% in, because of "Error: Name not found: OB- Standard". I am actually trying to run Magma and Seaside in the same image. Magma works beautifully, and I kind of hoped Seaside would be a breeze, but... :-) Oh well. I will wait to hear if anyone can get it to work and share how. Thanks again. PS: Here is the transcript (up to when the error happens), I guess that part worked OK: found ConfigurationOfSeaside3-JohanBrichau.268.mcz... ConfigurationOfSeaside3 class>>copyMczFromSmalltalkhubToFileTree: (Gofer is Undeclared) ConfigurationOfSeaside3 class>>copyMczFromSmalltalkhubToFileTree: (Gofer is Undeclared) ConfigurationOfSeaside3 class>>scriptToCopyMczs (Gofer is Undeclared) ConfigurationOfSeaside3 class>>scriptToCopyMczs (Gofer is Undeclared) loaded Loading 1.0-beta.31.1.8 of ConfigurationOfMetacello... Fetched -> ConfigurationOfGofer-dkh.45 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- http://seaside.gemtalksystems.com/ss/metacello Loaded -> ConfigurationOfGofer-dkh.45 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- http://seaside.gemtalksystems.com/ss/metacello Project: Gofer Core 1.0.5.1 ...RETRY Fetched -> Gofer-Core.squeak-dkh.135 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- http://seaside.gemtalksystems.com/ss/metacello ...RETRY->Metacello-Core-dkh.494 ...RETRY->Metacello-Core-dkh.494 Fetched -> Metacello-Core-dkh.494 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- http://seaside.gemtalksystems.com/ss/metacello Fetched -> Metacello-Platform.squeak-dkh.17 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- http://seaside.gemtalksystems.com/ss/metacello Loaded -> Gofer-Core.squeak-dkh.135 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- cache Loaded -> Metacello-Core-dkh.494 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- cache MetacelloSqueakPlatform>>downloadFile:to: (OSProcess is Undeclared) MetacelloSqueakPlatform>>downloadFile:to: (OSProcess is Undeclared) MetacelloSqueakPlatform>>extractRepositoryFrom:to: (OSProcess is Undeclared) Loaded -> Metacello-Platform.squeak-dkh.17 --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache --- cache ...finished 1.0-beta.31.1.8 Loading 1.0-beta.31.1.8 of ConfigurationOfMetacello... Project: Gofer Core 1.0.5.1 ...finished 1.0-beta.31.1.8 Loading 3.1.4.1 of ConfigurationOfSeaside3... Fetched -> ConfigurationOfOmniBrowser-pad.187 --- http://www.squeaksource.com/MetacelloRepository --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache Loaded -> ConfigurationOfOmniBrowser-pad.187 --- http://www.squeaksource.com/MetacelloRepository --- /home/lostgweilo/ignore/Squeak-5.0-All-in-One/Squeak-5.0-All-in-One.app/Contents/Resources/package-cache -- View this message in context: http://forum.world.st/Incomplete-Seaside-instruction-on-squeak-org-tp4843294p4845038.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. From overcomer.man at gmail.com Sun Aug 23 23:43:12 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Sun Aug 23 23:43:15 2015 Subject: [Newbies] How do I print? Message-ID: Several different things are polymorphically called print. How do I send text to a peripheral printer? I found the menu item "Send contents to printer" and it produced walkback which says "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". Printer setup similarly failed yet after the OS supplied the customary sound that the printer was hooked up. This occurred in Squeak 4.5 under Windows 7. What would solve the problem best? Upgrading Squeak? Getting a different printer? Going back to Digitalk Smalltalk/V and a dot matrix ribbon printer where it did work years ago? Kirk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150823/e474760d/attachment.htm From lewis at mail.msen.com Mon Aug 24 00:20:13 2015 From: lewis at mail.msen.com (David T. Lewis) Date: Mon Aug 24 00:20:15 2015 Subject: [Newbies] How do I print? In-Reply-To: References: Message-ID: <20150824002013.GA47834@shell.msen.com> On Sun, Aug 23, 2015 at 04:43:12PM -0700, Kirk Fraser wrote: > Several different things are polymorphically called print. How do I send > text to a peripheral printer? I found the menu item "Send contents to > printer" and it produced walkback which says > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". Printer > setup similarly failed yet after the OS supplied the customary sound that > the printer was hooked up. > > This occurred in Squeak 4.5 under Windows 7. What would solve the problem > best? Upgrading Squeak? Getting a different printer? Going back to > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did work > years ago? Hi Kirk, That MessageNotUnderstood is a bug for sure. I'm surprised nobody spotted the MNU until now; I suspect that it has been broken for quite a while. I'm afraid that this is negected functionality. As a workaround, there are various ways to export to files which can then be printed. The contents of a workspace can be exported to a text file, and any morph can exported in various ways (included postscript) by means of the tools button in morph halo menus (yellow click on any morph). Dave From lewis at mail.msen.com Mon Aug 24 00:25:09 2015 From: lewis at mail.msen.com (David T. Lewis) Date: Mon Aug 24 00:25:11 2015 Subject: [Newbies] How do I print? In-Reply-To: <20150824002013.GA47834@shell.msen.com> References: <20150824002013.GA47834@shell.msen.com> Message-ID: <20150824002509.GA52668@shell.msen.com> On Sun, Aug 23, 2015 at 08:20:13PM -0400, David T. Lewis wrote: > On Sun, Aug 23, 2015 at 04:43:12PM -0700, Kirk Fraser wrote: > > Several different things are polymorphically called print. How do I send > > text to a peripheral printer? I found the menu item "Send contents to > > printer" and it produced walkback which says > > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". Printer > > setup similarly failed yet after the OS supplied the customary sound that > > the printer was hooked up. > > > > This occurred in Squeak 4.5 under Windows 7. What would solve the problem > > best? Upgrading Squeak? Getting a different printer? Going back to > > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did work > > years ago? > > Hi Kirk, > > That MessageNotUnderstood is a bug for sure. I'm surprised nobody spotted > the MNU until now; I suspect that it has been broken for quite a while. > > I'm afraid that this is negected functionality. As a workaround, there are > various ways to export to files which can then be printed. The contents of > a workspace can be exported to a text file, and any morph can exported in > various ways (included postscript) by means of the tools button in morph > halo menus (yellow click on any morph). > Sorry, I guess that would be the blue button (not yellow) that brings up the morph halos. Dave From overcomer.man at gmail.com Mon Aug 24 00:32:27 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Aug 24 00:32:33 2015 Subject: [Newbies] How do I print? In-Reply-To: <20150824002509.GA52668@shell.msen.com> References: <20150824002013.GA47834@shell.msen.com> <20150824002509.GA52668@shell.msen.com> Message-ID: David, Thanks for the tip to create a file and print with external tools. I need to write a program to extract PO Boxes from a county voter list to send out post cards inviting each voter to sign my petition in a central location at one minute intervals to reduce the crowds. One of them will be to term limit the local mayor. So I thought to generate the cards one at a time but your way can work. Kirk On Sun, Aug 23, 2015 at 5:25 PM, David T. Lewis wrote: > On Sun, Aug 23, 2015 at 08:20:13PM -0400, David T. Lewis wrote: > > On Sun, Aug 23, 2015 at 04:43:12PM -0700, Kirk Fraser wrote: > > > Several different things are polymorphically called print. How do I > send > > > text to a peripheral printer? I found the menu item "Send contents to > > > printer" and it produced walkback which says > > > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". Printer > > > setup similarly failed yet after the OS supplied the customary sound > that > > > the printer was hooked up. > > > > > > This occurred in Squeak 4.5 under Windows 7. What would solve the > problem > > > best? Upgrading Squeak? Getting a different printer? Going back to > > > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did work > > > years ago? > > > > Hi Kirk, > > > > That MessageNotUnderstood is a bug for sure. I'm surprised nobody spotted > > the MNU until now; I suspect that it has been broken for quite a while. > > > > I'm afraid that this is negected functionality. As a workaround, there > are > > various ways to export to files which can then be printed. The contents > of > > a workspace can be exported to a text file, and any morph can exported in > > various ways (included postscript) by means of the tools button in morph > > halo menus (yellow click on any morph). > > > > Sorry, I guess that would be the blue button (not yellow) that brings up > the morph halos. > > Dave > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150823/647dad98/attachment.htm From lewis at mail.msen.com Mon Aug 24 01:40:11 2015 From: lewis at mail.msen.com (David T. Lewis) Date: Mon Aug 24 01:40:13 2015 Subject: [Newbies] How do I print? In-Reply-To: References: <20150824002013.GA47834@shell.msen.com> <20150824002509.GA52668@shell.msen.com> Message-ID: <20150824014011.GA66662@shell.msen.com> I just committed a fix for this in Squeak trunk. I don't have a Windows machine to test it with, but if you are able to update to the latest Squeak trunk, please give it a try and let me know it it works for you. Note that this is rather old code with platform dependencies, so I really cannot say if it is going to work. The underlying problem was that the editor hierarchy had been refactored for Morphic a few years ago, and this particular feature was overlooked. I added the missing implementation. Dave On Sun, Aug 23, 2015 at 05:32:27PM -0700, Kirk Fraser wrote: > David, > > Thanks for the tip to create a file and print with external tools. I need > to write a program to extract PO Boxes from a county voter list to send out > post cards inviting each voter to sign my petition in a central location at > one minute intervals to reduce the crowds. One of them will be to term > limit the local mayor. So I thought to generate the cards one at a time > but your way can work. > Kirk > > > > On Sun, Aug 23, 2015 at 5:25 PM, David T. Lewis wrote: > > > On Sun, Aug 23, 2015 at 08:20:13PM -0400, David T. Lewis wrote: > > > On Sun, Aug 23, 2015 at 04:43:12PM -0700, Kirk Fraser wrote: > > > > Several different things are polymorphically called print. How do I > > send > > > > text to a peripheral printer? I found the menu item "Send contents to > > > > printer" and it produced walkback which says > > > > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". Printer > > > > setup similarly failed yet after the OS supplied the customary sound > > that > > > > the printer was hooked up. > > > > > > > > This occurred in Squeak 4.5 under Windows 7. What would solve the > > problem > > > > best? Upgrading Squeak? Getting a different printer? Going back to > > > > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did work > > > > years ago? > > > > > > Hi Kirk, > > > > > > That MessageNotUnderstood is a bug for sure. I'm surprised nobody spotted > > > the MNU until now; I suspect that it has been broken for quite a while. > > > > > > I'm afraid that this is negected functionality. As a workaround, there > > are > > > various ways to export to files which can then be printed. The contents > > of > > > a workspace can be exported to a text file, and any morph can exported in > > > various ways (included postscript) by means of the tools button in morph > > > halo menus (yellow click on any morph). > > > > > > > Sorry, I guess that would be the blue button (not yellow) that brings up > > the morph halos. > > > > Dave > > _______________________________________________ > > Beginners mailing list > > Beginners@lists.squeakfoundation.org > > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From overcomer.man at gmail.com Mon Aug 24 02:34:18 2015 From: overcomer.man at gmail.com (Kirk Fraser) Date: Mon Aug 24 02:34:20 2015 Subject: [Newbies] How do I print? In-Reply-To: <20150824014011.GA66662@shell.msen.com> References: <20150824002013.GA47834@shell.msen.com> <20150824002509.GA52668@shell.msen.com> <20150824014011.GA66662@shell.msen.com> Message-ID: Dave, Not sure what you mean by trunk. I assumed it was the first download on squeak.org but it seems a lot harder to extract than Squeak 4.5 was. Anyway it did not work any better on the menu print. Kirk On Sun, Aug 23, 2015 at 6:40 PM, David T. Lewis wrote: > I just committed a fix for this in Squeak trunk. I don't have a Windows > machine to test it with, but if you are able to update to the latest > Squeak trunk, please give it a try and let me know it it works for you. > Note that this is rather old code with platform dependencies, so I really > cannot say if it is going to work. > > The underlying problem was that the editor hierarchy had been refactored > for Morphic a few years ago, and this particular feature was overlooked. > I added the missing implementation. > > Dave > > > On Sun, Aug 23, 2015 at 05:32:27PM -0700, Kirk Fraser wrote: > > David, > > > > Thanks for the tip to create a file and print with external tools. I > need > > to write a program to extract PO Boxes from a county voter list to send > out > > post cards inviting each voter to sign my petition in a central location > at > > one minute intervals to reduce the crowds. One of them will be to term > > limit the local mayor. So I thought to generate the cards one at a time > > but your way can work. > > Kirk > > > > > > > > On Sun, Aug 23, 2015 at 5:25 PM, David T. Lewis > wrote: > > > > > On Sun, Aug 23, 2015 at 08:20:13PM -0400, David T. Lewis wrote: > > > > On Sun, Aug 23, 2015 at 04:43:12PM -0700, Kirk Fraser wrote: > > > > > Several different things are polymorphically called print. How do > I > > > send > > > > > text to a peripheral printer? I found the menu item "Send > contents to > > > > > printer" and it produced walkback which says > > > > > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". > Printer > > > > > setup similarly failed yet after the OS supplied the customary > sound > > > that > > > > > the printer was hooked up. > > > > > > > > > > This occurred in Squeak 4.5 under Windows 7. What would solve the > > > problem > > > > > best? Upgrading Squeak? Getting a different printer? Going back > to > > > > > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did > work > > > > > years ago? > > > > > > > > Hi Kirk, > > > > > > > > That MessageNotUnderstood is a bug for sure. I'm surprised nobody > spotted > > > > the MNU until now; I suspect that it has been broken for quite a > while. > > > > > > > > I'm afraid that this is negected functionality. As a workaround, > there > > > are > > > > various ways to export to files which can then be printed. The > contents > > > of > > > > a workspace can be exported to a text file, and any morph can > exported in > > > > various ways (included postscript) by means of the tools button in > morph > > > > halo menus (yellow click on any morph). > > > > > > > > > > Sorry, I guess that would be the blue button (not yellow) that brings > up > > > the morph halos. > > > > > > Dave > > > _______________________________________________ > > > Beginners mailing list > > > Beginners@lists.squeakfoundation.org > > > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > > > > > _______________________________________________ > > Beginners mailing list > > Beginners@lists.squeakfoundation.org > > http://lists.squeakfoundation.org/mailman/listinfo/beginners > > _______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150823/b346047e/attachment.htm From hannes.hirzel at gmail.com Mon Aug 24 04:58:50 2015 From: hannes.hirzel at gmail.com (H. Hirzel) Date: Mon Aug 24 04:58:53 2015 Subject: [Newbies] How do I print? In-Reply-To: References: <20150824002013.GA47834@shell.msen.com> <20150824002509.GA52668@shell.msen.com> <20150824014011.GA66662@shell.msen.com> Message-ID: Did you go for this http://build.squeak.org/job/SqueakTrunk/lastSuccessfulBuild/artifact/target/TrunkImage.zip ? On 8/24/15, Kirk Fraser wrote: > Dave, > > Not sure what you mean by trunk. I assumed it was the first download on > squeak.org but it seems a lot harder to extract than Squeak 4.5 was. > Anyway it did not work any better on the menu print. > > Kirk > > > > On Sun, Aug 23, 2015 at 6:40 PM, David T. Lewis > wrote: > >> I just committed a fix for this in Squeak trunk. I don't have a Windows >> machine to test it with, but if you are able to update to the latest >> Squeak trunk, please give it a try and let me know it it works for you. >> Note that this is rather old code with platform dependencies, so I really >> cannot say if it is going to work. >> >> The underlying problem was that the editor hierarchy had been refactored >> for Morphic a few years ago, and this particular feature was overlooked. >> I added the missing implementation. >> >> Dave >> >> >> On Sun, Aug 23, 2015 at 05:32:27PM -0700, Kirk Fraser wrote: >> > David, >> > >> > Thanks for the tip to create a file and print with external tools. I >> need >> > to write a program to extract PO Boxes from a county voter list to send >> out >> > post cards inviting each voter to sign my petition in a central >> > location >> at >> > one minute intervals to reduce the crowds. One of them will be to term >> > limit the local mayor. So I thought to generate the cards one at a >> > time >> > but your way can work. >> > Kirk >> > >> > >> > >> > On Sun, Aug 23, 2015 at 5:25 PM, David T. Lewis >> wrote: >> > >> > > On Sun, Aug 23, 2015 at 08:20:13PM -0400, David T. Lewis wrote: >> > > > On Sun, Aug 23, 2015 at 04:43:12PM -0700, Kirk Fraser wrote: >> > > > > Several different things are polymorphically called print. How >> > > > > do >> I >> > > send >> > > > > text to a peripheral printer? I found the menu item "Send >> contents to >> > > > > printer" and it produced walkback which says >> > > > > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". >> Printer >> > > > > setup similarly failed yet after the OS supplied the customary >> sound >> > > that >> > > > > the printer was hooked up. >> > > > > >> > > > > This occurred in Squeak 4.5 under Windows 7. What would solve >> > > > > the >> > > problem >> > > > > best? Upgrading Squeak? Getting a different printer? Going back >> to >> > > > > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did >> work >> > > > > years ago? >> > > > >> > > > Hi Kirk, >> > > > >> > > > That MessageNotUnderstood is a bug for sure. I'm surprised nobody >> spotted >> > > > the MNU until now; I suspect that it has been broken for quite a >> while. >> > > > >> > > > I'm afraid that this is negected functionality. As a workaround, >> there >> > > are >> > > > various ways to export to files which can then be printed. The >> contents >> > > of >> > > > a workspace can be exported to a text file, and any morph can >> exported in >> > > > various ways (included postscript) by means of the tools button in >> morph >> > > > halo menus (yellow click on any morph). >> > > > >> > > >> > > Sorry, I guess that would be the blue button (not yellow) that brings >> up >> > > the morph halos. >> > > >> > > Dave >> > > _______________________________________________ >> > > Beginners mailing list >> > > Beginners@lists.squeakfoundation.org >> > > http://lists.squeakfoundation.org/mailman/listinfo/beginners >> > > >> >> > _______________________________________________ >> > Beginners mailing list >> > Beginners@lists.squeakfoundation.org >> > http://lists.squeakfoundation.org/mailman/listinfo/beginners >> >> _______________________________________________ >> Beginners mailing list >> Beginners@lists.squeakfoundation.org >> http://lists.squeakfoundation.org/mailman/listinfo/beginners >> > From cunningham.cb at gmail.com Mon Aug 24 05:08:20 2015 From: cunningham.cb at gmail.com (Chris Cunningham) Date: Mon Aug 24 05:08:23 2015 Subject: [Newbies] How do I print? In-Reply-To: References: Message-ID: On Sun, Aug 23, 2015 at 4:43 PM, Kirk Fraser wrote: > Several different things are polymorphically called print. How do I send > text to a peripheral printer? I found the menu item "Send contents to > printer" and it produced walkback which says > "MessageNotUnderstood: SmalltalkEditor>sendContentsToPrinter". Printer > setup similarly failed yet after the OS supplied the customary sound that > the printer was hooked up. > > This occurred in Squeak 4.5 under Windows 7. What would solve the problem > best? Upgrading Squeak? Getting a different printer? Going back to > Digitalk Smalltalk/V and a dot matrix ribbon printer where it did work > years ago? > > Kirk > Hi Kirk, You can fix this by copying the following into the SmalltalkEditor class. sendContentsToPrinter | textToPrint printer parentWindow | textToPrint := paragraph text. textToPrint size = 0 ifTrue: [^self inform: 'nothing to print.']. printer := TextPrinter defaultTextPrinter. parentWindow := self model dependents detect: [:dep | dep isSystemWindow] ifNone: [nil]. parentWindow isNil ifTrue: [printer documentTitle: 'Untitled'] ifFalse: [printer documentTitle: parentWindow label]. printer printText: textToPrint this will send the contents of an editor pane to the connected (default) printer. If you need to change the printer, you can go to the outside top left icon (mouse), choose VM Preferences->System Preferences->Printer Configuration. The above message also shows how to programmatically interface with the printer. -cbc -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20150823/259b1726/attachment.htm From Das.Linux at gmx.de Wed Aug 26 12:58:04 2015 From: Das.Linux at gmx.de (Tobias Pape) Date: Wed Aug 26 12:58:10 2015 Subject: [Newbies] Incomplete Seaside instruction on squeak.org? In-Reply-To: <1440267065095-4845038.post@n4.nabble.com> References: <1439740220846-4843294.post@n4.nabble.com> <1440085408590-4844550.post@n4.nabble.com> <1440267065095-4845038.post@n4.nabble.com> Message-ID: Hi On 22.08.2015, at 20:11, lostgweilo wrote: > Thanks for the help and advice. > > I tried to evaluate the code you shared and indeed something doesn't work > right. > A debugger pops up while "Fetching 3.1.4.1 of ConfigurationsOfSeaside3", > about 45% in, because of "Error: Name not found: OB- Standard". > > I am actually trying to run Magma and Seaside in the same image. Magma works > beautifully, and I kind of hoped Seaside would be a breeze, but... :-) Oh > well. > I will wait to hear if anyone can get it to work and share how. Thanks > again. > > PS: Here is the transcript (up to when the error happens), I guess that part > worked OK: > > found ConfigurationOfSeaside3-JohanBrichau.268.mcz... > > ConfigurationOfSeaside3 class>>copyMczFromSmalltalkhubToFileTree: (Gofer is > Undeclared) > ConfigurationOfSeaside3 class>>copyMczFromSmalltalkhubToFileTree: (Gofer is > Undeclared) > ConfigurationOfSeaside3 class>>scriptToCopyMczs (Gofer is Undeclared) > ConfigurationOfSeaside3 class>>scriptToCopyMczs (Gofer is Undeclared) loaded > > Loading 1.0-beta.31.1.8 of ConfigurationOfMetacello... Thanks. Omnibrowser's Configuration is not yet fixed for Squeak5. Once I get around to do that, it should work. Thanks for your patience. In the meantime, you may want to try the Squeak4.4 Seaside 3.0.8 All-in-one package: http://ftp.squeak.org/4.4/seaside/Seaside-3.0.8-AllInOne.zip Best regards -Tobias From asqueaker at gmail.com Wed Aug 26 15:41:46 2015 From: asqueaker at gmail.com (Chris Muller) Date: Wed Aug 26 15:41:48 2015 Subject: [Newbies] Incomplete Seaside instruction on squeak.org? In-Reply-To: References: <1439740220846-4843294.post@n4.nabble.com> <1440085408590-4844550.post@n4.nabble.com> <1440267065095-4845038.post@n4.nabble.com> Message-ID: Is there any way to load Seaside without OmniBrowser? It's just for that one configuration panel right? If I'm willing to forego that one configuration panel, could I leave OB out of my Seaside image? On Wed, Aug 26, 2015 at 7:58 AM, Tobias Pape wrote: > Hi > On 22.08.2015, at 20:11, lostgweilo wrote: > >> Thanks for the help and advice. >> >> I tried to evaluate the code you shared and indeed something doesn't work >> right. >> A debugger pops up while "Fetching 3.1.4.1 of ConfigurationsOfSeaside3", >> about 45% in, because of "Error: Name not found: OB- Standard". >> >> I am actually trying to run Magma and Seaside in the same image. Magma works >> beautifully, and I kind of hoped Seaside would be a breeze, but... :-) Oh >> well. >> I will wait to hear if anyone can get it to work and share how. Thanks >> again. >> >> PS: Here is the transcript (up to when the error happens), I guess that part >> worked OK: >> >> found ConfigurationOfSeaside3-JohanBrichau.268.mcz... >> >> ConfigurationOfSeaside3 class>>copyMczFromSmalltalkhubToFileTree: (Gofer is >> Undeclared) >> ConfigurationOfSeaside3 class>>copyMczFromSmalltalkhubToFileTree: (Gofer is >> Undeclared) >> ConfigurationOfSeaside3 class>>scriptToCopyMczs (Gofer is Undeclared) >> ConfigurationOfSeaside3 class>>scriptToCopyMczs (Gofer is Undeclared) loaded >> >> Loading 1.0-beta.31.1.8 of ConfigurationOfMetacello... > > > Thanks. > Omnibrowser's Configuration is not yet fixed for Squeak5. > Once I get around to do that, it should work. > > Thanks for your patience. > > In the meantime, you may want to try the Squeak4.4 Seaside 3.0.8 All-in-one > package: > > http://ftp.squeak.org/4.4/seaside/Seaside-3.0.8-AllInOne.zip > > Best regards > -Tobias_______________________________________________ > Beginners mailing list > Beginners@lists.squeakfoundation.org > http://lists.squeakfoundation.org/mailman/listinfo/beginners From stephan at stack.nl Wed Aug 26 15:56:03 2015 From: stephan at stack.nl (Stephan Eggermont) Date: Wed Aug 26 16:30:15 2015 Subject: [Newbies] Re: Incomplete Seaside instruction on squeak.org? In-Reply-To: References: <1439740220846-4843294.post@n4.nabble.com> <1440085408590-4844550.post@n4.nabble.com> <1440267065095-4845038.post@n4.nabble.com> Message-ID: On 26-08-15 17:41, Chris Muller wrote: > Is there any way to load Seaside without OmniBrowser? It's just for > that one configuration panel right? If I'm willing to forego that one > configuration panel, could I leave OB out of my Seaside image? Yes, that's right. It is a much more complex configuration panel than you might think at first sight, though. Stephan From Das.Linux at gmx.de Wed Aug 26 18:16:16 2015 From: Das.Linux at gmx.de (Tobias Pape) Date: Wed Aug 26 18:16:19 2015 Subject: [Newbies] Incomplete Seaside instruction on squeak.org? In-Reply-To: References: <1439740220846-4843294.post@n4.nabble.com> <1440085408590-4844550.post@n4.nabble.com> <1440267065095-4845038.post@n4.nabble.com> Message-ID: Hi, On 26.08.2015, at 17:56, Stephan Eggermont wrote: > On 26-08-15 17:41, Chris Muller wrote: >> Is there any way to load Seaside without OmniBrowser? It's just for >> that one configuration panel right? If I'm willing to forego that one >> configuration panel, could I leave OB out of my Seaside image? > > Yes, that's right. It is a much more complex configuration panel than > you might think at first sight, though. Stephan is right. Also, I have a ToolBuilder-based Control panel ready that I'll integrate and release after my vacation. Best regards -Tobias