Re: [Newbies] Pool Variables

2013-07-01 Thread K. K. Subramaniam
On Tuesday 02 July 2013 08:46 AM, Joseph J Alotta wrote: Just curious, can someone give me an real life example of when you would need to use pool variables and no other variable would work? Generally information from external world are made available through pool variables since they are

Re: [Newbies] How can I embed an object in another holder

2013-01-27 Thread K. K. Subramaniam
On Monday 28 January 2013 09:54 AM, Steve Thomas wrote: I'm using Etoys and I want to change and objects holder What is the squeak code to embed it in a different object? You have to detach the morph from its existing owner and then add it to the destination container. See grabMorph:from and

Re: [Newbies] Help with pen stuff

2012-06-05 Thread K. K. Subramaniam
On Tuesday 05 Jun 2012 2:46:17 AM OrgmiGeek wrote: In my spare time I decided to rite a simple paint program! Welcome to Squeak! Have you read the blog: http://billkerr2.blogspot.in/2007/09/morphic-etoys-is-superior-graphical.html John Maloney's article in the reference listed therein is an

Re: [Newbies] Help with pen stuff

2012-06-05 Thread K. K. Subramaniam
On Tuesday 05 Jun 2012 2:46:17 AM OrgmiGeek wrote: In my spare time I decided to rite a simple paint program! Welcome to Squeak! Have you read the blog: http://billkerr2.blogspot.in/2007/09/morphic-etoys-is-superior-graphical.html John Maloney's article in the reference listed therein is an

Re: [Newbies] Move an object into another project

2011-09-26 Thread K. K. Subramaniam
On Sunday 25 Sep 2011 8:31:07 AM Jonathan Wright wrote: Is there a way to move an object from one project into another project? For instance when I create a text object in the main world screen, I would like to be able to move it into a child object or the other way around. Yes, by using

Re: [Newbies] Keyboard input - programming course

2011-07-04 Thread K. K. Subramaniam
On Tuesday 05 Jul 2011 2:17:52 AM Stephen Woolerton wrote: However, IMHO this is not the best way to introduce Squeak programming to beginners. It mimics procedural programming in a console. I fully agree with you. The reason is that there are external criteria which we have to meet. The

Re: [Newbies] Need help about tile!!

2011-06-17 Thread K. K. Subramaniam
On Friday 17 Jun 2011 7:28:15 AM Alberto Ferreira wrote: I'm reading squeakbyexample and learning Smalltalk. I want to create a tile which return a SQRT resolution in a menu. I.E.: When a halo is opened if we click on a viewer for a text object witch contains a number similar to

Re: [Newbies] Bert Freudenberg's Squeakfest 2010 presentation available

2011-05-14 Thread K. K. Subramaniam
On Wednesday 11 May 2011 5:27:25 PM Steve Thomas wrote: If you want to see the power of Etoys (and squeak) and a great talk by Bert check this video of his Squeakfest 2010 presentationhttp://www.youtube.com/watch?v=WUxMP46PM-I I got to watch the entire presentation yesterday. Absolutely

Re: [Newbies] Sprite animation in Morphic?

2011-05-11 Thread K. K. Subramaniam
On Wednesday 11 May 2011 8:45:29 AM Casey Ransberger wrote: Can anyone point me in the right direction? Take a look at bouncing ball animation in Etoys. It puts frames in a holder and cycles thru them with the holder's cursor. HTH .. Subbu ___

Re: [Newbies] I've never written a line of code, but want to be a programmer!

2011-03-30 Thread K. K. Subramaniam
On Wednesday 30 Mar 2011 12:30:56 pm Tim Retz wrote: My problem is that smalltalk is my first programing language, So I need to figure out how to break a problem down to something I can code out (I need to learn to scratch-code in a workspace). Start with your own programming problem first

Re: [Newbies] How can I execute a script on carriage return?

2011-02-27 Thread K. K. Subramaniam
On Friday 25 Feb 2011 12:07:42 pm Steve Thomas wrote: How do I print integers or specify that I only want 2 digits to the right of the decimal point? (Below is my script). script1 | tmpStr | tmpStr := 'Im a Bot.\My position is: ' withCRs , self getLocation printString , '\and my

Re: [Newbies] How can I create a scripting tile in Etoys/Squeak

2011-02-14 Thread K. K. Subramaniam
On Monday 14 Feb 2011 4:49:33 pm Steve Thomas wrote: In the class additionsToViewerCategoryFraction I added a slot using: (slot st1 'The quantity of Steve parts' Number readWrite Player getMajorTicks Player setMajorTicks:) The part I was missing was I had to to Etoys-Scripting Player the

Re: [Newbies] How can I create a scripting tile in Etoys/Squeak

2011-02-13 Thread K. K. Subramaniam
On Monday 14 Feb 2011 2:07:53 am Steve Thomas wrote: I am working on learning squeak and want to know how to create a scripting tile for use in Etoys. Bring up Etoys (scripting tool) for a morph by clicking on the 'eye' halo icon. You will get a flap containing property and command tiles for

Re: [Newbies] Any Beginner Introduction on Squeak Usage

2011-02-11 Thread K. K. Subramaniam
On Friday 11 Feb 2011 8:20:03 am ericgao wrote: Have used Squeak for some days, but it seems I still don't have very clear idea on how to use Squeak for develop, only know to open class browser to type in code and run in workspace and debug step by step, any introduction on other function of

Re: [Newbies] Modifying world size?

2010-12-27 Thread K. K. Subramaniam
On Tuesday 28 Dec 2010 12:25:59 am Casey Ransberger wrote: I'd like to have worlds that are bigger than the screen, wherein the user can scroll about using a floating desktop pager, a la Self's demo snapshot. I've tried changing e.g., the height of the world, but it seems to snap right back.

Re: [Newbies] Squeak / Smalltalk classes

2010-10-12 Thread K. K. Subramaniam
On Tuesday 12 Oct 2010 11:54:31 am Amir Ansari wrote: I started with Squeak when I was using the book - most of the examples are universally applicable, until you get to the chapters on graphics/windows. But by then you're comfortable enough with the language to be able to just read through

Re: [Newbies] Html Parser

2010-10-09 Thread K. K. Subramaniam
On Saturday 09 Oct 2010 5:37:56 pm Sayth Renshaw wrote: I was wondering if there was a html parser for squeak. I want to capture data from website and then convert these to xml and export into an excel program I have. Is this possible in squeak? Yes. Browse HtmlParser class. A good way to

Re: [Newbies] How to give numbers/anything to my program?

2010-10-01 Thread K. K. Subramaniam
On Friday 01 Oct 2010 2:58:55 am David T. Lewis wrote: On Thu, Sep 30, 2010 at 11:00:48AM +0200, jon jonsen wrote: Does anybody know where to get a list of the (most common) smalltalk-commands and a short description of them? Hi, The Terse Guide to Squeak provides a handy reference:

Re: [Newbies] How to export/import painting from one Etoys project to another?

2010-09-20 Thread K. K. Subramaniam
On Tuesday 21 Sep 2010 2:02:25 am Louis LaBrunda wrote: I have an image or painting in an Etoys project that I would like to use in another project. How do I export it from one project so I can import it to another project? The easiest way is to do is to bring up a halo, do COPY (CTRL-C?) and

Re: [Newbies] Good commenting style?

2010-08-02 Thread K. K. Subramaniam
On Saturday 31 Jul 2010 6:35:46 pm Kannan Thambiah wrote: He suggests to enhance the Object class with a new method revisit: aString, that doesn't have a method body. Instead every subclass of Object where we want to leave notes, we'll just send us a message, e.g. self revisit: 'I still need

Re: [Newbies] (no subject)

2010-05-13 Thread K. K. Subramaniam
On Tuesday 11 May 2010 12:52:31 am John Foster wrote: I'll play with all these ideas, but using Tex seems like it will make the bigger goals less daunting I adapted Simon's LatexMorph for Etoys to help 9-12 yr olds typeset Indic and Math text. See, http://www.squeaksource.com/LatexMorph

Re: [Newbies] (no subject)

2010-05-11 Thread K. K. Subramaniam
On Monday 10 May 2010 12:01:58 am John Foster wrote: My problem is how to display a fraction so it looks like a fraction, and not like (2/5) + (7/8). I want the vinculum to be a horizontal line: 2 7 61 --- + --- = 5 8 40 You could use a Column morph with its

Re: [Newbies] (no subject)

2010-05-10 Thread K. K. Subramaniam
On Monday 10 May 2010 12:01:58 am John Foster wrote: My problem is how to display a fraction so it looks like a fraction, and not like (2/5) + (7/8). I want the vinculum to be a horizontal line: 2 7 61 --- + --- = 5 8 40 You could use a Column morph with its

Re: [Newbies] RE: Determining File Size

2010-03-21 Thread K. K. Subramaniam
On Sunday 21 March 2010 01:52:46 pm Van Upboy wrote: Subbu, thanks for the hint to look for the directoryEntry. I have working code (see example). When I inspect aFile then the other variables are there (for instance, there is a creationTime which contains a number, and there is a fileSize).

Re: [Newbies] determining file size?

2010-03-20 Thread K. K. Subramaniam
On Saturday 20 March 2010 09:02:32 pm Van Upboy wrote: I'm listing files in a directory, but I want to show more than just the filename (like file size and may be creation date). I've searched for some time on the Internet, but I can't find the answer. How to do this? File size is an attribute

Re: [Newbies] Re: How to add a gif or an image to a Morph

2010-03-18 Thread K. K. Subramaniam
On Thursday 18 March 2010 04:56:13 pm FrankBz wrote: The problem is that I'm writing a a morph that should change background image accordingly to user action.. What exactly are you trying to do? Create a button? Create a scenic animated background? Do you need to scale/rotate your background

Re: [Newbies] help regarding keyboard event

2010-03-12 Thread K. K. Subramaniam
On Thursday 11 March 2010 04:16:52 am priti verma wrote: hi, I want to know how to invoke key press event in squeak speacly tab key pressed??if any one have any study material or any thing please help In Squeak, keystrokes are converted into events (KeyboardEvent) by the main loop and passed

Re: [Newbies] Need help for project

2010-02-06 Thread K. K. Subramaniam
On Sunday 07 February 2010 02:57:05 am priti verma wrote: If any one can provide any e-book or tutorial or some source of information how to manipulate the existing source code it will be very helpful. John Maloney's article on Morphic:

Re: [Newbies] Using same class names

2010-01-31 Thread K. K. Subramaniam
On Monday 01 February 2010 06:09:35 am lanas wrote: Hello all, Is there a way to have several classes with the same names and having their scope limited to the current selected category ? Eg. I'd like to experiment with the Abstract factory pattern and thus I would like to make several

Re: [Newbies] Stepping of ImageMorph

2010-01-15 Thread K. K. Subramaniam
On Thursday 14 January 2010 08:41:05 am Hans Gruber wrote: An new question von my side again, because I'm quite new in working with Squeak. If you are new to Squeak, you may want to start with Etoys and create programs (scripts) visually. I wanted to animate an ImageMorph in my project.

Re: [Newbies] Expected menu items not there

2009-12-15 Thread K. K. Subramaniam
On Tuesday 15 December 2009 09:05:13 pm Tim Rowe wrote: Is it worth me attaching a screenshot? (are binaries allowed here?) Yes (and Yes). It would help. Include the version number (help-about this system) and swapMouseButtons preference (help-preferences-General). Happy Holidays .. Subbu

Re: [Newbies] Expected menu items not there

2009-12-08 Thread K. K. Subramaniam
On Wednesday 09 December 2009 07:52:58 am Tim Rowe wrote: Can anybody work out what I've done, and what I need to do to get the print it and inspect it menu items back? What you are seeing is the shift-yellow-click menu. You will see this if your caps-lock got turned on accidentally. Subbu

Re: [Newbies] Speed

2009-11-13 Thread K. K. Subramaniam
On Friday 13 November 2009 04:05:08 pm John Worden wrote: Squeak 5600 - 5800 milliseconds Pharo 5400 - 5500 milliseconds Cuis 200 - 500 milliseconds So there was a factor of 10 in it which I why I noticed I guess. You may want to drill down the timing differences using: MessageTally spyOn:

Re: [Newbies] Event handling: mouse click vs. mouse drag

2009-11-12 Thread K. K. Subramaniam
On Thursday 12 November 2009 06:01:01 pm Esther wrote: for a UI, I need to distinguish between mouse clicks and mouse drags (mouse down, move, up). Is there a rather simple way to do this in Squeak? See use of mouseMove: method in John Maloney's excellent tutorial on Morphic:

Re: [Newbies] Drawing a line on a morph

2009-10-30 Thread K. K. Subramaniam
On Friday 30 October 2009 09:22:26 pm Christine Wolfe wrote: What I am trying to do is have a group (array, set, collection?) of faces on a rectangle - sort of like a child's building block with an image on each of the faces. I want 1 face to be blank, one to have a line, one to have a

Re: [Newbies] Drawing a line on a morph

2009-10-30 Thread K. K. Subramaniam
On Friday 30 October 2009 11:41:23 pm Christine Wolfe wrote: I tried it but the debugger says it doesn't understand drawFace1: I've double and triple checked and drawFace1: is there. The drawFace1 selector needs a ':' at the end. My mistake. The corrected statement is: self perform:

Re: [Newbies] Parsing and splitting file contents

2009-08-29 Thread K. K. Subramaniam
On Saturday 29 Aug 2009 7:18:02 pm r00t uk wrote: I am reading a tab delimited file into a string. I want to iterate through this string and split by tab, or any other defined value (, . | # tab, cr, etc.), delimiter into substrings which are assigned to a Collection (Array, Dictionary, Bag,

Re: [Newbies] Help me FileIn

2009-08-16 Thread K. K. Subramaniam
On Sunday 16 Aug 2009 12:09:27 pm Overcomer Man wrote: Yes it does clarify where to more properly access fileIn, from a file list instead of the class definition middle button more... menu. Thanks. I find drag-n-drop from the native file manager to be easier than going through Squeak FileList.

Re: [Newbies] Help me FileIn

2009-08-16 Thread K. K. Subramaniam
On Sunday 16 Aug 2009 10:28:23 pm Randal L. Schwartz wrote: Really? When did they change? In classic Squeak, fileouts were basically the classic ST80 format, which is clearly human-readable text. But not native text files (they are not opened in ascii mode). Code fileOuts are a database of

Re: [Newbies] Help me FileIn

2009-08-16 Thread K. K. Subramaniam
On Sunday 16 Aug 2009 11:00:51 pm Overcomer Man wrote: subbukk What exactly are you trying to do? I'm trying to get object database functions to provide for my robot and an English dictionary. I have some old code in a Dolphin package file I'm copying in but it seems unnecessarily complex.

Re: [Newbies] Help me FileIn

2009-08-16 Thread K. K. Subramaniam
On Monday 17 Aug 2009 12:17:25 am Randal L. Schwartz wrote: That explanation is about .sources and .changes, not fileOuts. The class fileout (from browser into *.st files) uses the same format (sequence of data chunks) as *.sources and *.changes files. Did you have some other fileOuts in mind?

Re: [Newbies] How to make Font larger in Squeak Browsers/etc..

2009-07-29 Thread K. K. Subramaniam
On Wednesday 29 Jul 2009 2:06:40 am vmars wrote: vmars wrote: Please, How to make Font larger in Squeak Browsers/etc.. ? All of the Squeak browsers etc. have too small Fonts for me . World menu - appearance - system fonts ALSO, is there a way to Display the Browser name (which Browser is

Re: [Newbies] 'evaluating SokobanMorph random openInWorld in a workspace'

2009-07-29 Thread K. K. Subramaniam
On Wednesday 29 Jul 2009 2:47:13 am vmars wrote: in Squeak by example: Fig 1.14:'Using SqueakMap to install the Sokoban game'. It says, after installing this package, start up Sokoban by 'evaluating SokobanMorph random openInWorld in a workspace'. Press ALT+k to get a workspace, type

Re: [Newbies] Stephane Ducasse's 'Learning to Programing with Robots'

2009-07-23 Thread K. K. Subramaniam
On Thursday 23 Jul 2009 7:24:25 pm Max Norman wrote: I'm a novice programmer, who, at the suggestion of several more experienced developers, is attempting to get familiar with Smalltalk before moving on to Ruby, to more thoroughly learn and understand the concepts of object-oriented

Re: [Newbies] How to find owner morph?

2009-07-15 Thread K. K. Subramaniam
On Wednesday 15 Jul 2009 6:19:28 pm 杨帅军 wrote: When I click my button, I wish destroy button's owner and then display another morph.Now I can't find button's owner morph when I design this press-down event, I can't send a hide or destroy message to button's owner morph Have you tried saving

Re: [Newbies] Re: Squeak context menus

2009-07-15 Thread K. K. Subramaniam
On Tuesday 14 Jul 2009 1:23:16 am Robert Lamb wrote: K. K. Subramaniam subbukk at gmail.com writes: Have you looked at doYellowButtonPress:, hasYellowButtonMenu methods? I see the hasYellowButtonMenu method, but not the other. Problem is I cannot figure out how to hook it all up and am

Re: [Newbies] Squeak context menus

2009-07-13 Thread K. K. Subramaniam
On Sunday 12 Jul 2009 11:40:13 pm Robert Lamb wrote: I am having trouble finding examples of how to bring up my own right-click context menus. I am guessing that I want CustomMenu for the menu itself, but how do I hook it up to the right-click button? I cannot seem to catch the right- click

Re: [Newbies] Re: Smalltalk Data Structures and Algorithms

2009-06-29 Thread K. K. Subramaniam
On Monday 29 Jun 2009 3:27:30 pm Benjamin L. Russell wrote: Fascinating. So an object is an abstract representation of a gene, rather than a blueprint for a computational process This is a revelation. In computer terms, Smalltalk is a recursion on the notion of computer itself. Instead

Re: [Newbies] Squeak - Beginning Morphic

2009-06-29 Thread K. K. Subramaniam
On Monday 29 Jun 2009 9:31:56 pm Robert wrote: I am having trouble figuring out the proper sort of canvas class that would be best for adding/deleting/moving simple morphs around. Also, I am unsure how to get that canvas into a usable application sort of window. Finally, how would I allow the

Re: [Newbies] Smalltalk Data Structures and Algorithms

2009-06-25 Thread K. K. Subramaniam
On Friday 26 Jun 2009 2:59:13 am Frank Church wrote: Are there any books that cover this area for Smalltalk Yes. See http://stephane.ducasse.free.fr/FreeBooks.html for an annotated list. BTW, Smalltalk is a object-based system. An object combines the role of data and algorithm into one unit.

Re: [Newbies] purge of graphics objects

2009-04-28 Thread K. K. Subramaniam
On Tuesday 28 April 2009 5:21:25 pm antonio wrote: Sometimes the size of a project does not reduce after the deletion of a graphic object. How can I purge definitively the space of this object? If the object is truly freed and no references anywhere in your code or browsing tools, you can

Re: [Newbies] Block and Closure

2009-04-09 Thread K. K. Subramaniam
On Friday 10 April 2009 3:24:42 am Andrey Larionov wrote: What difference between this things. I know about Eliots post describing closures in Squeak, but it's too massive and so special to understand Briefly, A closure tracks the full computational state of its block. A block is a executable

Re: [Newbies] Confirmation when saving, from Setting up squeak on Ubuntu thread

2009-04-09 Thread K. K. Subramaniam
On Friday 10 April 2009 7:27:06 am Jerome Peace wrote: The most often encountered slip is to save a change set or a project in a new directory or a directory from which all other change sets of the same name have been removed. You get a Changeset.1.cs which you probably already have somewhere.

Re: [Newbies] Setting up squeak on Ubuntu

2009-04-08 Thread K. K. Subramaniam
On Thursday 09 April 2009 8:39:42 am Jerome Peace wrote: Its not obvious where things will be stored when saved. So far text from saved workspaces turn up as files in the directories of the original image not the links. Unix Squeak saves files in $SQUEAK_USERDIR. It defaults to the folder My

Re: [Newbies] Setting up a squeak on a Ubuntu system

2009-03-26 Thread K. K. Subramaniam
On Thursday 26 Mar 2009 3:14:20 am Bert Freudenberg wrote: Well, the Etoys install should have created a menu entry so you just   click that and it should work. This only launches Squeak. Mac users are used to opening *.image files by drag-n-drop on the Squeak app. If there are only a few

Re: [Newbies] Setting up a squeak on a Ubuntu system

2009-03-25 Thread K. K. Subramaniam
On Wednesday 25 Mar 2009 11:49:12 am Jerome Peace wrote: I am ignorant in how to tell my Ubuntu 8.04 system how to connect an image file with a squeak vm. (E.G. the vm that runs the installed etoys for example.) Right click on the squeak image and select properties. You will get a multi-sheet

[Newbies] RE: Welcome to the Beginners mailing list

2009-03-12 Thread K. K. Subramaniam
Pedro Pereira wrote: This is just my first try with it... just trying to figure it out for something else. I want to move a small picture called bolo (cake) to the mouth... If you have two objects called Mouth with a object Food to the left of it (on same Y), then you can try: script: swallow1

Re: [Newbies] Morph import corrupted

2009-01-19 Thread K. K. Subramaniam
On Monday 19 Jan 2009 6:27:55 pm Mark Carter wrote: Is it rare for people to create morphs anyway, or is it something that people like doing all the time? It depends on how lazy a programmer is :-). The existing collection of Morph is quite extensive, so you could get by most of the time by

Re: [Newbies] Passing methods to buttons

2009-01-15 Thread K. K. Subramaniam
On Thursday 15 Jan 2009 12:03:03 am Filip Malczak wrote: Propably I got it all wrong, so if anyone can explain me how to create button and give a special action for clicking (any button, not only red) from code level, I'd be VERY pleased. Any morph can act as a button. Just add a method

Re: [Newbies] How to make a PluggableTextMorph read-only?

2008-12-09 Thread K. K. Subramaniam
On Monday 08 Dec 2008 5:57:21 pm Daniel Taschik wrote: I'm working on a project at my University and we develop a TetriNet Client with Squeak. We have a small problem on how to make a PluggableTextMorph read-only. The Morph shall display the log of the internal Chat. Can anyone tell me how

Re: [Newbies] SimpleSliderMorph target setting question.

2008-11-24 Thread K. K. Subramaniam
On Friday 21 Nov 2008 7:04:21 am Tim Patti wrote: The above code works in the workspace and transcript, but I cannot figure out how to point the SimpleSliderMorph target to my instance si.  Tried all kind of combinations with no luck Turn on create textual references to dropped morphs in

Re: [Newbies] Coloring images with transparant parts

2008-11-18 Thread K. K. Subramaniam
On Tuesday 18 Nov 2008 7:38:27 pm Matthias Korn wrote: I have a .png or .gif image (e.g. an ImageMorph) with transparent parts (e.g. a circle where the outer part is transparent). I now want to have this one image and color it programmatically with other colors (e.g. the circle appearing in

Re: [Newbies] Applets in Squeak

2008-10-16 Thread K. K. Subramaniam
On Thursday 16 Oct 2008 7:01:14 pm Bert Freudenberg wrote: Am 16.10.2008 um 14:55 schrieb Vijay Mathew: Hi, I have a Squeak project which I would like to be embedded in web pages, like a Java applet. How can I do this? Upload it to a web server, then use this link to embed it:

Re: [Newbies] custom halos

2008-10-04 Thread K. K. Subramaniam
On Saturday 04 Oct 2008 10:55:28 am Aidan Gauland wrote: K. K. Subramaniam wrote: For adding a new button called BBB, you need to 1. add a halospec for addBBBHandle to Preferences class (see senders of addScriptorHandle: for the list) How can I do (and undo) this programmatically? I

Re: [Newbies] break out of do

2008-10-03 Thread K. K. Subramaniam
On Friday 03 Oct 2008 6:34:24 pm Mark Volkmann wrote: Is there a way to break out of a do:? For example, if I use do: to iterate through the characters in a string and I find a character I don't want to allow, can I break out and avoid examining the remaining characters? A string is a

Re: [Newbies] custom halos

2008-10-02 Thread K. K. Subramaniam
On Thursday 02 Oct 2008 6:44:58 am Aidan Gauland wrote: Hello, I've created a Morph (an indirect subclass of Morph) and I want it to have an extra halo for bringing up a special menu (or dialog, or etc.). How can I do this? For adding a new button called BBB, you need to 1. add a

Re: [Newbies] Are setters a good idea?

2008-09-28 Thread K. K. Subramaniam
On Sunday 28 Sep 2008 12:10:37 am Andy Burnett wrote: I read somewhere - can't remember where - that setters are considered evil. The argument was that in the real world you can't suddenly change the colour of a car, just by settings its colour value. Instead, you have to perform some action,

Re: [Newbies] constants

2008-09-28 Thread K. K. Subramaniam
On Sunday 28 Sep 2008 7:26:43 pm Mark Volkmann wrote: I think my main issue is scoping. I want to define a constant that is   associated with a class to avoid name conflicts. See classes Color, Cursor or Float for examples of scoped constants: Color red Cursor wait Float pi For

Re: [Newbies] System Browser back and forward

2008-09-27 Thread K. K. Subramaniam
On Saturday 27 Sep 2008 12:47:59 am Mark Volkmann wrote: When ctrl-B is used in the System Browser to browse a selected class in the same System Browser, is there a way to go back to previous classes you were viewing ... like back and forward buttons in a web browser? Alt+r/Ctrl+r in Browser

Re: [Newbies] scripts

2008-09-26 Thread K. K. Subramaniam
On Friday 26 Sep 2008 5:42:48 pm Mark Volkmann wrote: Is it possible to run a Squeak program from a terminal window and have   access to the stdin and stdout streams from the Smalltalk code? If so,   pointers to documentation on this would be much appreciated. Others have answered how you can

Re: [Newbies] multiple Transcript windows

2008-09-26 Thread K. K. Subramaniam
On Friday 26 Sep 2008 11:31:31 pm Mark Volkmann wrote: If I have multiple Transcript windows open, can I choose in code which one will receive output? Yes. The window is a SystemWindow which shows the contents of the TranscriptStream stored in its 'model' variable. If you have an oop to a

Re: [Newbies] Programmatically manipulating the mouse

2008-09-16 Thread K. K. Subramaniam
On Saturday 13 Sep 2008 9:26:02 am Aidan Gauland wrote: But what CAN I do to the mouse?  Could I make it temporarily invisible in, for example, a large game where the mouse would just get in the way?  Can I change its appearance on the screen?  I can't seem find out much using the browser.

Re: [Newbies] How do I run Chess?

2008-08-07 Thread K. K. Subramaniam
On Friday 08 Aug 2008 1:40:55 am Daniel Lewis wrote: Hello, I would like to explore Squeak but am unable to do even the simplest thing: running a program. In Squeak, you don't run 'programs' but create and delete 'objects'. If you want to play chess, open Object Catalog (ALT+O) and look for

Re: [Newbies] true/false defined where?

2008-08-05 Thread K. K. Subramaniam
On Tuesday 05 Aug 2008 6:39:01 pm Sean Allen wrote: I have a feeling the secret to unraveling that confusion comes from this: 'true and false and some of the very few objects known to the VM' An object in Squeak contains between two to three header words (object descriptor, class and size).

Re: [Newbies] How to shorten a method (using inject: into: ?)

2008-07-22 Thread K. K. Subramaniam
On Tuesday 22 Jul 2008 9:54:25 pm Randal L. Schwartz wrote: It's just a horribly named method, which is why I didn't find it at first. Message Finder is quite handy for exploring selectors in an image. Entering sum in a new line in workspace or text object and then pressing ALT+SHIFT+W would

Re: [Newbies] flash, index cards

2008-07-16 Thread K. K. Subramaniam
On Wednesday 16 Jul 2008 6:03:25 am waufrepi III wrote: anyone know of if there's a package kicking around that creates index/flash cards? I have some good old fashion rote memorization to tackle and would like to stay in Squeak? Have you tried the Book morph from the supplies flap? A book is a

Re: [Newbies] separating app from platform-specific parts of image?

2008-07-13 Thread K. K. Subramaniam
On Saturday 12 Jul 2008 2:06:50 pm John Chandler wrote: OK, but if my image is for Mac OS X PPC, and the target machine is   Debian x86, will the image I copy to it even start up? Image files can be opened on any platform. Make sure that you get the *virtual machine* for the Debian x86. Install