$a is a way to input the Character "a". Just like you use 'Hello' to
input the string "Hello". In other words, it is a Character literal.
Does that make sense?
Matthias
On Wed, Apr 27, 2011 at 08:35, calcrisk33 wrote:
> bool = $a worked like a charm! So what exactly does $ do? I'm more famili
try
bool = $a
to get what you expect. A String consists of Characters (Character is
a separate class).
You could also do
'abc' inspect
to see what's going on :)
Cheers
Matthias
On Wed, Apr 27, 2011 at 08:05, calcrisk33 wrote:
> Given:
>
> | binnum index bool|
> binnum := 'abc'.
> index
You just need to use parentheses, like so:
(Album repository at: 7) desc: 'this is a good album'
BTW, it is better to use full words for your method and variable names
-- they are much easier to guess.
I don't know about the context where you want to use this, but maybe
it is a good idea to sepa
Andy,
a string and a block are two distinct things in Smalltalk. Seaside
just lets you provide one or the other as an argument for messages
like paragraph: because that's convenient when you write a web
application. Sometimes you want to have plain text in that paragraph,
then you use
html para
Hi Van,
On Wed, Feb 10, 2010 at 9:48 AM, Van Upboy wrote:
> Hello all,
>
> 1. Some data 'expires' after 24 hours. So when the object is initialized, I
> do:
> creationDate: Date today.
>
> And there is a method to check if the data is expired, like this:
> ^self creationDate > (creationDat
Hi Kevin,
there is a Seaside FAQ on generating PDFs
http://seaside.st/documentation/pdfs
HTH
Matthias
On Sun, Aug 2, 2009 at 11:16 AM, Kevin Polston wrote:
> Hi
> I'd like to create a printable output file from within Squeak, for instance
> to create a report.
>
> I've done a little Googlin
For your particular need (normalizing line breaks), use:
aString withSqueakLineEndings
That gives you a defined line end convention, suitable for use with
other methods like linesDo:.
HTH
Matthias
On Mon, Feb 2, 2009 at 4:09 PM, Sebastian Nozzi wrote:
> No, actually no.
>
> But the backgrou
http://www.visoracle.com/squeak/faq/string-search.html :)
On Mon, Jan 12, 2009 at 10:38 PM, Rob Rothwell wrote:
> Does anyone know of a SoundEx algorithm in Squeak before I go write one
> myself?
>
> Never hurts to ask!
>
> Rob
>
> ___
> Beginners maili
Hi,
I know it is possible manually, using the paint box. I guess you could
fill using a transparent color. I would open the Method finder and
search for fill or floodfill. Don't have a squeak image in front of me
now, sorry.
HTH
Matthias
On Tue, Nov 18, 2008 at 3:08 PM, Matthias Korn
<[EMAIL PR
Mark,
== tests for object identity. Look for implementors of ==, you find it
in ProtoObject:
== anObject
"Primitive. Answer whether the receiver and the argument are the same
object (have the same object pointer). Do not redefine the message == in
any other class! Essenti
Hi,
the @ method is not specific to Squeak. I guess it has been included
in the earliest versions of Smalltalk already.
I don't know about any other Squeak-specific syntax (apart from arrays).
If you're concerned about portability of your code to other Smalltalk
dialects then you might want to h
ity to be based on the value of some internal class
> value.
>
> Maybe I'm thinking too much like a java programmer.
>
> Tony
>
> On Oct 14, 2008, at 2:56 AM, Matthias Berth wrote:
>
>> Hi Michael,
>>
>> I think Tonys model of the game is like this:
>
Hi Michael,
I think Tonys model of the game is like this:
A Player throws a hand. That can be any of "rock", "scissors", or
"paper". Now someone (a Game object?) has to check if the player did
not make a mistake, say by throwing a "well". The set of legal throws
(in this game, anyway) is somehow
Hi Tony,
welcome to Smalltalk :-) Try this:
s := 'abcdef' asSet.
s includes: $a.
To see similar methods, browse the class Collection - in the testing category.
HTH
Matthias
On Tue, Oct 14, 2008 at 8:11 AM, Tony Giaccone <[EMAIL PROTECTED]> wrote:
> Ok, so I'm really new to smalltalk. I've don
e. Is there any place where I could put the code so the community can
> use it ?
>
> Cheers,
> Iulian
>
> -- Forwarded message --
> From: Matthias Berth <[EMAIL PROTECTED]>
> Date: Tue, Jul 22, 2008 at 7:10 PM
> Subject: Re: [Newbies] Skewing Forms in
David,
How many possible float values do you have? Maybe a lookup strategy
for the conversion is feasible...
Cheers
Matthias
On Fri, Sep 5, 2008 at 7:59 PM, David Finlayson <[EMAIL PROTECTED]> wrote:
> I re-wrote the test application to load the test file entirely into
> memory before parsing t
>
> wrote:
>>
>> what is Squeak V2?
>>
>> On Tue, Jul 22, 2008 at 12:02 PM, Matthias Berth
>> <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >
>> > is WarpBlt available in Squeak V2?
>> >
>> > On Tue, Jul 22, 2008
Hi,
is WarpBlt available in Squeak V2?
On Tue, Jul 22, 2008 at 7:53 PM, Iulian Wande Radu
<[EMAIL PROTECTED]> wrote:
> Hi, I'd like to skew the graphics of a Form, is there an easy way to do this
> in v2 ?
>
> What I want is to take the rectangle from a normal form, transform it into
> an arbitra
Hi,
The idea is that you should _maybe_ give the superclasses of Strand a
chance to execute their method.
In some situations this is really necessary, or just a good way to
avoid code duplication.
HTH
Matthias
On Sat, Jul 19, 2008 at 5:47 PM, stan shepherd <[EMAIL PROTECTED]> wrote:
>
> Hi, I g
Have a look at BookMorph.
Cheers
Matthias
On Wed, Jul 16, 2008 at 2:33 AM, waufrepi III <[EMAIL PROTECTED]> 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?
>
t; On 22-May-08, at 8:24 AM, Matthias Berth wrote:
>
>> ... just one mor ething about recovering the Todo app: you'll want to
>> open the .changes file that was originally produced in the Seaside One
>> Click experience image. That will be inside the App folder (Control
world
menu) and browse it.
Cheers
Matthias
On Thu, May 22, 2008 at 1:16 PM, Matthias Berth
<[EMAIL PROTECTED]> wrote:
> On Wed, May 21, 2008 at 10:40 PM, Aaron Broad <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I'm new to smalltalk/squeak. Trying to learn seasid
On Wed, May 21, 2008 at 10:40 PM, Aaron Broad <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to smalltalk/squeak. Trying to learn seaside. I want to use the
> web development image but i can't seem to get it to work. I have mac os x
> leopard on macbook pro. I have tried the following each with f
Hi,
you can do this by selecting "Resist being picked up" in the morph's menu.
Cheers
Matthias
On Thu, Feb 28, 2008 at 12:39 AM, Marcus Strehlow
<[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> again, I have to ask a rather interesting question. Say, you have a
> PasteUpMorph, inside which you have
Hi,
just in case there is still a problem with this:
> Open -> Universe Browser -> Web Development -> Seaside
Means:
- start squeak
- right-click on the background, this opens the "World menu"
- about 1/3 down there is an entry "open..." in the world menu
- click on open..., and choose "Univers
Hi,
maybe I can help you find the problem.
> When I get to the part where tutorial describes creating the 'Fire' and
> 'Quit' buttons, though, I get an unexpected result. The buttons are vastly
> oversized. I've checked the code and the tutorial several times, so I don't
> think I've typed i
I think we could have the mailing lists as "refinements"
http://google.com/coop/manage/cse/refinements?cx=008315932112852043911%3Ayuibfrpnbc0
It says:
Refinements are labels that you apply to web sites. They appear as a
list of links above search results, offering users a way to narrow
their sear
Hello,
I have created a custom search engine for Squeak and related projects:
http://google.com/coop/cse?cx=008315932112852043911%3Ayuibfrpnbc0
at the moment it has only a few sites on it. Please volunteer to add
more sites (click on the "volunteer to contribute" link) or send
interesting URLs
Hi Jeff,sorry, in the enthusiasm over having found out something, I totally forgot that you were asking about reactions to key strokes, not mouse clicks :-)Let me give you my 2 cents about your frustrations. Again, I'm just trying to help, so please don't take it personally.
- Ask early. I would no
Might be instructional to use etoys for that, along the lines of
http://www.squeakland.org/pdf/poster/graphbooklet.pdf
Use the screen as your plotting area. Position a morph to the x,y
coordinate and let it "stamp" itself for every point. This is not so
easy when you want to plot some pre-compu
Hello Jeff :-)interesting question, and I know the situation you're describing with respect to getting the help you want.OK, to the point of your problem: you want to turn a Wonderland actor (your helicopter) in response to a mouse click. Here is a quick, concrete recipe, tested in Squeak
3.8:1) A
> I need a simple framework like MVC, but with an improved looking.
Another route might be to use a web browser with a HTML GUI on the
desktop. Use Seaside to produce HTML and manage state, scriptaculous
for some extra effects.
Hmm, other software (like Firefox) is accepted even with non-nativ
32 matches
Mail list logo