tutorial issue

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

tutorial issue

Steve Bleeke
I'm still trying to get this tutorial todo app to work.
 
I created the components and the initializeMenuComponent is throwing an error.
 
This is the syntax of what is being executed:  I copy/pasted from the tutorial text.
 
initializeMenuComponent
 
 self menuComponent: (StMenuComponent new
  addEntry: 'All' withAction: [self showAllTasks];
  addEntry: 'Completed' withAction: [self showCompletedTasks];
  addEntry: 'Pending' withAction: [self showPendingTasks];
  addEntry: 'Missed' withAction: [self showMissedTasks];
  yourself).
 
This is the error I get:
 
Seaside Walkback

MessageNotUnderstood: UndefinedObject>>new

Debug Proceed Full Stack

Possible Causes

  • the receiver of the message is nil
  • a class extension hasn't been loaded correctly
  • you sent the wrong message

Stack Trace

  1. thisContext
    UndefinedObject(Object)>>doesNotUnderstand: #new
    self
    nil
    aMessage
    new
  2. thisContext
    StRootComponent>>initializeMenuComponent
    self
    a StRootComponent
  3. thisContext
    StRootComponent>>initialize
    self
    a StRootComponent
  4. thisContext
    StRootComponent class(WAPresenter class)>>new
    self
    StRootComponent
  5. thisContext
    WARenderLoopMain>>createRoot
    self
    a WARenderLoopMain
Can anyone give me a hint.  Sorry, I'm just getting started with Smalltalk et al.
 
I'm using Squeak 10 and Seaside 2.8

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: tutorial issue

jgfoster
Hi Steve,

Could you post the contents of this method:

> StRootComponent>>initializeMenuComponent

James Foster
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: tutorial issue

Julian Fitzell-2
In reply to this post by Steve Bleeke
Did you perhaps write and save that method before creating the
StMenuComponent class? If so, the method will have been compiled
without a reference to the class (because it didn't exist).

Try typing something in the method and then deleting it so it thinks
it has changed and then saving it again.

Julian

On Thu, Jan 15, 2009 at 1:55 AM, Steve Bleeke <[hidden email]> wrote:

> I'm still trying to get this tutorial todo app to work.
>
> I created the components and the initializeMenuComponent is throwing an
> error.
>
> This is the syntax of what is being executed:  I copy/pasted from the
> tutorial text.
>
> initializeMenuComponent
>
>  self menuComponent: (StMenuComponent new
>   addEntry: 'All' withAction: [self showAllTasks];
>   addEntry: 'Completed' withAction: [self showCompletedTasks];
>   addEntry: 'Pending' withAction: [self showPendingTasks];
>   addEntry: 'Missed' withAction: [self showMissedTasks];
>   yourself).
>
> This is the error I get:
>
> Seaside Walkback
>
> MessageNotUnderstood: UndefinedObject>>new
>
> Debug Proceed Full Stack
>
> Possible Causes
>
> the receiver of the message is nil
> a class extension hasn't been loaded correctly
> you sent the wrong message
>
> Stack Trace
>
> thisContext UndefinedObject(Object)>>doesNotUnderstand: #new self nil
> aMessage new
> thisContext StRootComponent>>initializeMenuComponent self a StRootComponent
> thisContext StRootComponent>>initialize self a StRootComponent
> thisContext StRootComponent class(WAPresenter class)>>new self
> StRootComponent
> thisContext WARenderLoopMain>>createRoot self a WARenderLoopMain
>
> Can anyone give me a hint.  Sorry, I'm just getting started with Smalltalk
> et al.
>
> I'm using Squeak 10 and Seaside 2.8
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside