(#Motivation asClass fromString: 'a') sayIt is not working better :-)
Should. Phil On Wed, Jul 12, 2017 at 8:54 AM, Sven Van Caekenberghe <s...@stfx.eu> wrote: > Yes, but these are all inside the method editor. > > I wanted to start with > > (Motivation fromString: 'foo') sayIt. > > in a playground/workspace. > > But with just a DNU it works. > > > On 12 Jul 2017, at 08:49, p...@highoctane.be wrote: > > > > What is not working? Check this: > > > > <image.png> > > > > Hit Define new class and just accept what is proposed, then proceed > > > > <image.png> > > > > Now hit Create and define the method. > > > > <image.png> > > > > etc etc for usual coding. > > > > Best, > > Phil > > > > On Wed, Jul 12, 2017 at 8:35 AM, K K Subbu <kksubbu...@gmail.com> wrote: > > On Wednesday 12 July 2017 08:33 AM, horrido wrote: > > But for the life of me, I can't figure out how to create new classes for > my > > application from within the Debugger. Must I create new classes using the > > System Browser first before I can continue adding new methods from within > > the Debugger? What's the recommended procedure for all this? > > > > Not necessarily. In Pharo, everything happens through message sends. > > Classes are created by sending any one of subclass:* family of messages > to the parent class. System Browser makes it convenient by adding a > template to its bottom text panel. Magic happens in the subclass:* message > sends. > > > > When you "inspect" an object in the Debugger, a text panel will open up > along the right side where you can type in a command just like in System > Browser and "doIt". E.g. to create a subclass from Object. > > > > Object subclass: ... > > > > HTH .. Subbu > > > > > > > > > >