Skip to content

Commit 7a3a9d9

Browse files
authored
Merge pull request #137 from LNUitTutor/patch-8
Update Commander.md - typos
2 parents 8d02357 + dc04743 commit 7a3a9d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Chapters/Commander2/Commander.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ MailClientPresenter class >> buildAccountMenuWith: presenter
298298

299299
### Using fillWith:
300300

301-
In Chapter *@cha_mailapp@*, we defined the method `MailClientPresenter >> accountMenu` to return the context menu for the `MailAccountPresenter`. When using commands, we implement it differently. We create a new menu and fill it with the commands defined in the method above. A presenter has access to the root of the command tree through the message `rootCommandsGroup`. Subtrees can be accessed by sending the `/` message. By using commands, building up the context menu is almost trivial:
301+
In Chapter *@cha_menus@*, we defined the method `MailClientPresenter >> accountMenu` to return the context menu for the `MailAccountPresenter`. When using commands, we implement it differently. We create a new menu and fill it with the commands defined in the method above. A presenter has access to the root of the command tree through the message `rootCommandsGroup`. Subtrees can be accessed by sending the `/` message. By using commands, building up the context menu is almost trivial:
302302

303303

304304
```
@@ -537,10 +537,9 @@ NewMailTemplateCommand >> execute
537537
The implementation above requires the addition of an extension method to the `MailClientPresenter` class. The method below resides in the package "CodeOfSpec20Book-Extensions". The implementation of the method is similar to `MailClientPresenter >> newMail`. The only difference is setting the given template by sending the `body:` message to the new mail.
538538

539539
```
540-
NewMailTemplateCommand >> newFromTemplate: aString
540+
MailClientPresenter >> newFromTemplate: aString
541541
542542
editedEmail := Email new.
543-
editedEmail beDraft.
544543
editedEmail body: aString.
545544
reader updateLayoutForEmail: editedEmail.
546545
self modelChanged

0 commit comments

Comments
 (0)