The base UIManager code has no accessors for file saving, though Polymorph does support such a dialog... Try UITheme builder fileSave: "Your dialog title here' Regards, Gary ----- Original Message ----- From: "George Herolyants" <george.herolyants@gmail.com> To: <Pharo-project@lists.gforge.inria.fr> Sent: Monday, January 25, 2010 11:07 AM Subject: Re: [Pharo-project] [newbee] How do I save the contents of aWorkspace? Bill, Mariano thanks for the feedback! 2010/1/21 Schwab,Wilhelm K <bschwab@anest.ufl.edu>:
Thanks for doing this! How did you modify the menu? I have *no* clue how to do that.
There is a method addModelItemsToWindowMenu:, which do the job.
Two comments, the first horribly pedantic. The prompt for the file name reads "Enter file name to save the workspace to" - we have no shortage of dangling prepositions. "Ener file name" would be preferable.
I agree.
More substantively, it does not prompt for a directory. I agree that the image directory is the most likely default, but Pinesoft probably > has given us a suitable file dialog, and if not, we should identify the omission.
There is such a dialog. FileDialogWindow. I use it when I ask user for file name to open. But I didn't find any way to force this dialog to ask for the new file name. I may be wrong, but it only allows user to choose from existing file names. Some comments from more experienced people would be helpful though. George _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project