[Cuis-dev] [IMPROV] Accept for Workspaces

Hernán Wilkinson hernan.wilkinson at 10pines.com
Thu Mar 16 12:22:41 PDT 2023


Hi Gerald!
 I could not see what you sent but I'm writing to you because I do not
understand why you would like to "accept" the contents of a workspace...
What do you expect to happen when doing that?

Thanks
Hernan

On Thu, Mar 16, 2023 at 8:45 AM Gerald Klix via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Hi all, Hi Juan,
>
> I found it a bit annoying ever since I used Cuis, that I can't accept
> the contents of a workspace. (This even worked in Smalltalk/V for MS-DOS
> back in 1986).
>
> Please find a simple three method change-set attached,
> that fixes this problem.
>
> If you don't like the "forceSaveContents" stuff you
> can define TextModel>>#acceptContentsFrom: like this:
>
> acceptContentsFrom: aTextModelMorph
>
>         aTextModelMorph owningWindow ifNotNil: [ :ow |
>                 ow hasSaveAs ifTrue: [ ow saveContents ] ]
>
> and make it use the existing saveAs logic in SystemWindow.
>
>
> HTH and Best Regards,
>
> Gerald
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

*Hernán WilkinsonAgile Software Development, Teaching & Coaching*
*Phone: +54-011*-4893-2057
*Twitter: @HernanWilkinson*
*site: http://www.10Pines.com <http://www.10pines.com/>*
Address: Alem 896, Floor 6, Buenos Aires, Argentina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230316/40e0a345/attachment.htm>


More information about the Cuis-dev mailing list