A little HowTo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A little HowTo

Torsten Bergmann
The typical notation for class methods in tools/text/newsgroups is using
"class" to distinguish it from an instance method. So it would be
better to write:

WhateverRoot class>>canBeRoot
        ^true

So Foo class>>bar means the class side method and Foo>>bar the
instance method. Thats also how it is displayed in Senders/implementors
reference tools (not in Squeak, but in Pharo similar to other Smalltalks).


Also note that this tutorial only works in Seaside 2.8. I would make
that clear when people read it later and try it out.

In the newer Seaside 2.9 (which is available as alpha version on http://builder.seaside.st) the #registerAsApplication: is deprecated.

There you would write:
 
  MyRootComponent(class)>>initialize
        WAAdmin register: self asApplicationAt: 'foo'


Its also common practice not to call "super initialize" in class
side #initialize methods.

But thanks for your effort. I'm sure it will help others getting
into Seaside.

Bye
Torsten
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: A little HowTo

Bernat Romagosa
Thanks a lot, I corrected it as well and added a footnote pointing out the version issue.

I too hope it will help others come to seaside, I tried to write the "easy howto I would have wanted to find" when starting to build my website.

My intention is to keep on writing short howtos as I do my project, we'll see how long do I stick to it ;)

Bernat.


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside