Re: Is there a file selector in Pharo
Posted by
Torsten Bergmann on
Jan 27, 2021; 4:24pm
URL: https://forum.world.st/Is-there-a-file-selector-in-Pharo-tp5126575p5126578.html
Hi David,
welcome! Just check
UIManager default
chooseExistingFileReference: 'Select the XML file'
extensions: #('xml' 'xmi')
path: ''.
and similar methods. Be aware that a return value of nil means that
dialog was canceled.
Thanks
Torsten
David Pennington wrote:
>
> I am moving to Pharo from VisualAge Smalltalk as I am now using an M1 MacBook.
>
> I am building software to manage our home accounts and to do this, I download each day a text file from my bank that contains about 1 month’s worth of transactions. In VAST, I use a FileSelector that opens a window and enables my to navigate to the Downloads folder and lets me select the current transaction file. This gives me the path to the file making it simple for me to open and parse it.
>
> Is there a similar file selector window that I can use in Pharo? I can see how to open the Glamour browsers but not how to extract the path.
>
> Can anyone help please?
>
> David
> Totally Objects