如何让 Squeak 询问我要归档到哪里?
我右键单击类类别并选择 fileOut 将其导出到 .st 文件。问题是它从不询问我保存到哪里,而只是自己选择一个文件夹(似乎是包含图像文件的同一文件夹)。
我该如何更改它,迫使它实际上询问我将文件保存到哪里?以前的 Squeak 版本 (3.9.x) 确实问过我。
Squeak版本是4.2,操作系统是Ubuntu。
I'm right-clicking a class category and choose fileOut for exporting it to an .st file. The problem is that it never asks me where to save to, instead just choosing a folder by itself (seems to be the same folder containing the image file).
How can I change it, forcing it to actually ask me where to save the file to? Previous Squeak versions (3.9.x) did ask me.
Squeak version is 4.2, OS is Ubuntu.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来如果您不介意提交两次,4.3 中的默认行为是提示您是否覆盖现有文件。类似
Class.st 已经存在
,然后选择选择另一个名称
,您就可以写入任何目录中的正确位置,尽管在包含图像的目录中还有第二个副本。It looks like if you don't mind filing out twice, the default behaviour in 4.3 is to prompt if you would overwrite an existing file. Something like
Class.st already exists
, then selectchoose another name
and you can write to the correct place in any directory, albeit with a second copy in the directory with the image.我已经检查过 Pharo,结果是一样的,菜单只是提供文件到预定义位置的功能。
但是,仍然完全有可能通过脚本触发文件。查找
#fileOut
和#fileOutOn:
的实现者作为示例;沿着“myProgramEntity fileOutOn:aFileStream”评估某些内容应该可以做到。I've checked in Pharo and it's the same, the menus just offer to file out to a predefined location.
However, it's still perfectly possible to trigger a file out by script. Look for implementors of
#fileOut
and#fileOutOn:
for examples; evaluating something along the lines of `myProgramEntity fileOutOn: aFileStream' should do it.