Re: [hatari-devel] Hatari Mac GUI: Selecting IDE image

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


I remember that the original intent was to protect Mac users from selecting invalid images. However, the choice of hdv was really strange. I think it used to be files that ended with an img extension. In addition, macOS allows you to see file extensions. However, they are turned off by default in the Finder. 

I am hoping that the Mac version continues to save its config files in ~/Library/Application Support/Hatari since that is the standard place where application-specific information is held. Right now, screenshots appear to go to ~/Desktop. I also would not want the screenshots to go to ~/Pictures.

I do not have much time to use Hatari right now, but it is good to see that someone may be able to update the macOS UI. 

Bob C

> On Aug 26, 2022, at 4:42 PM, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
> 
> Hi,
> 
> On 27.8.2022 0.20, Chris Jenkins wrote:
>>> * would NSOpenPanel default to all files being selectable i.e. could
>>> mutString lines be completely removed?
>>> 
>> It looks like it does. I'll remove the what: parameter completely, meaning
>> that the Mac GUI will allow any filetype to be specified in any file
>> selector. (As far as I understand it, that's what the SDL GUI does: no
>> matter what sort of file you are choosing, you can choose a file with any
>> extension. Correct me if I'm wrong on that one!)
> 
> Yes, SDL GUI allows selecting any file, in any place where file is selected.
> 
> (There's even support for select files inside Zip archive files.)
> 
> 
>> BTW, mutString will still be needed because that's used to return the path
>> of the chosen file.
>> * does using this "chooseDirectories:NO defaultInitialDir" mean file
>>> selector defaulting to application workdir, or to dir of the initial
>>> file selection?
>>> 
>> I confess I haven't figured this out yet. I will attempt to figure it out
>> and report back. I confess that the file selector on the Mac sometimes
>> defaults to an unexpected place for me so it'll be good for me to
>> understand it better. I guess ultimately we'd want the Mac UI to behave the
>> same as the Hatari configuration defaults and/or the SDL UI...?
> 
> Otherwise yes, but I guess it's fine to follow OS defaults for things like application (Hatari) configuration files, maybe also screenshots, if OS has defaults for such.
> 
> (Although I have to admit that I like Hatari saving screenshots on Linux to working dir instead of my already full ~/Pictures/ folder.)
> 
> 
>> I'm busy this weekend but will attempt to create a new patch early next
>> week (once it works and I'm confident that I've not screwed up some basic
>> Objective C thing) to remove the filetype filters at least.
> 
> Great, thanks!
> 
> 
> 	- Eero
> 
> 




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/