logo       

Re: Mysteries of the Squeak IDE: msg#00086

lang.smalltalk.squeak.beginners

Subject: Re: Mysteries of the Squeak IDE

2007/7/15, Blake <blake@xxxxxxxxxxxxxx>:
If you open up a Workspace and enter some text, then close it, you get the
message:

"Changes have not been saved.
Is it OK to cancel those changes?"

If you answer yes, the window closes and all text is gone If you answer
no, and then save, and then close, you get no message. The window closes.
And the text is just as gone as it was when you didn't save it.

do you save with alt+s ? this is not actually saving but accepting...
hence it goes in the method PluggableTextMorph>>accept
the morph model accept the contents...
in this case model is a aWorkspace and the method acceptContents:
aString is sent to it... which only affect the string to its instance
var named contents... There can be an associated action but it's set
to nil by default...


Now, I've found that saving the text allows you to revert to it with an
"undo".
yes...

And it's happened at least once that I could save text in a workspace,
open a new "blank" workspace and "undo" to the last saved text, though
that doesn't always seem to work.
I've noticed a similar behavior once... this seems to be a bug
somewhere in the undo command...

What's the desired behavior?
just affecting the inst-var I guess... + perform the action when a
particular one is associated

Cédrick
_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise