[Pharo-users] Using Playgrounds as a notepad

Dimitris Chloupis kilon.alios at gmail.com
Tue Jan 5 02:14:46 EST 2016


you need to accept the contents in order for the workspace to store your
text, you can use either right click menu and accept or the shortcut that
menus shows then you can get the contents as a string via

ws := Workspace open.
"type text and then accept it"
ws contents asString


On Tue, Jan 5, 2016 at 3:57 AM Andy Burnett <andy.burnett at knowinnovation.com>
wrote:

> @Dimitris
>
> Thanks for the Workspace idea. That is pretty much what I am looking for.
> However, I am struggling to get it to behave the way I want.
> When I type into the Workspace, and then inspect
>
> ws contents
>
> I just get an empty string. Is there a simple way to get the ws to update
> its contents so that I can access it?
>
> @Sven, @Doru. Thanks. The Clipboard approach is very slick. I will use
> that for the time being. Out of curiosity, is it possible to access any
> other data on the clipboard. For instance, if I copy a pictured from my
> desktop, is that accessible via the Clipboard object? I only saw text
> oriented methods.
>
> Thanks
> Andy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160105/40e6a8ed/attachment.html>


More information about the Pharo-users mailing list