[Cuis-dev] [IMPROV] Accept for Workspaces
Gerald Klix
cuis.01 at klix.ch
Thu Mar 16 12:27:57 PDT 2023
Hi Hernán,
That's quite simple. I want the workspace's context to be saved on a file.
That's the behavior I am – or I was once – used to.
HTH,
Gerald
PS: There is no problem, if the change does not get accepted;
I will include it only in Haver, then.
On 3/16/23 8:22 PM, Hernán Wilkinson wrote:
> 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
>>
>
More information about the Cuis-dev
mailing list