NSOpenPanel: Case insensitive files
NSOpenPanel: Case insensitive files
- Subject: NSOpenPanel: Case insensitive files
- From: Chad Armstrong <email@hidden>
- Date: Sun, 9 Jan 2005 21:00:53 -0600
Is there a way when an NSOpenPanel is run, that it can select file type, which are case insensitive? So if I have an image viewer which can open up a GIF, it can open up an image with the extension GIF, or Gif, or gif, or GiF, etc. Is there any easy way about doing this, or would one have to list every permutation of an extension in the file types array?
Here is the call I am making currently to the open panel:
[openPanel runModalForDirectory:nil file:nil types:fileTypes];
fileTypes is an array which contains the file types (such as gif, jpg, etc.).
Chad Armstrong
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden