gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image file types and case sensitivity


From: Ivan Vučica
Subject: Re: image file types and case sensitivity
Date: Fri, 12 Aug 2016 14:00:20 +0000

Sounds reasonable.

I don't think anyone sane would treat and depend on extensions as case sensitive. If they're depending on that, they're doing something wrong.

On Thu, Jul 21, 2016 at 5:14 PM Riccardo Mottola <address@hidden> wrote:
Hi,

in GWorkspace, there is a simple selector for the desktop image. I
noticed that it doesn't show an image I recently got off my iPhone, a
simple JPEG. Wondering, I started debugging.

The code does the following:

   result = [openPanel runModalForDirectory: imagesDir
                                       file: nil
                                      types: [NSImage imageFileTypes]];

which is perfectly reasonable, isn't it?

I printed out the file types:

NSimage filetypes: (tiff, tif, pnm, ppm, gif, jpeg, jpg, png, icns)

I think the issue is that my file is .JPG and not .jpg

Should the open panel become case-insensitive regarding extensions? I
think yes, if possible. Else, all filetypes could be lower and upper
case, but that would leave out mixed-cases...

What's your opinion?


Riccardo

_______________________________________________
Gnustep-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnustep-dev

reply via email to

[Prev in Thread] Current Thread [Next in Thread]