[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
image file types and case sensitivity
From: |
Riccardo Mottola |
Subject: |
image file types and case sensitivity |
Date: |
Thu, 21 Jul 2016 18:11:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; NetBSD amd64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- image file types and case sensitivity,
Riccardo Mottola <=