In the browser, did you define newFoo when you were looking at the
class messages? It shouldn't be in the same list as someMessage
(instance side). Click the class button on the browser to see class
messages (where newFoo should go).

On 7/13/07, Klaus D. Witzel <[EMAIL PROTECTED]> wrote:
Hi Daniel,

on Thu, 12 Jul 2007 22:56:22 +0200, you wrote:

> Hello,
>
> I have a class Foo inherited from Object. When I try to create a user
> defined #new (newFoo), to avoid the #initialize instance method to run
> as part of the object instantiation, I get the following error:
> ... class(Object)>>doesNotUnderstand: #newFoo ...

When you select the word newFoo and ask for implementors (alt-m), is this
the only one in the result list which has "Foo class" in it?

If so then we must know more, can you post a fileOut of the definition of
Foo class and its #newFoo method.

/Klaus

> method definition:
> - --------------
> newFoo
>   | model|
>   model := self basicNew.
>   .. do something ..
>   model initialize.
>   ^model
> - --------------
> usage:
> someMethod
>   | foo |
>   foo := Foo newFoo.
>   .. do something ..
> - --------------
>
> Is there something that I missed to overwrite the #new method?
>
> Cheers,
> Daniel.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGlpV2gUMEmDMCeAARA5uvAKCDAw6ag+qHEDrFce8EjNKjD+QYbQCfZVLw
> OypIlyLFBLJOLB/rIktphwI=
> =Rfyg
> -----END PGP SIGNATURE-----


_______________________________________________
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

Reply via email to