Re: Is there a file selector in Pharo
Posted by
Long Haired David on
Jan 27, 2021; 4:44pm
URL: https://forum.world.st/Is-there-a-file-selector-in-Pharo-tp5126575p5126579.html
Both of those were very helpful . Interestingly, I was expecting a file path but I got the actual file so that makes it a bit easier.
Great group. I will enjoy being here.
Thanks to Torsten and Noury
David
Totally Objects
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
David
Totally Objects
Doing Smalltalk since 1989