Re: NSOpenPanel: Case insensitive files
Re: NSOpenPanel: Case insensitive files
- Subject: Re: NSOpenPanel: Case insensitive files
- From: Evan Schoenberg <email@hidden>
- Date: Mon, 10 Jan 2005 03:18:52 -0600
If your example is actually what you're trying to do, check NSImage's docs on
<x-tad-bigger>imageFileTypes </x-tad-bigger>which covers all supported image types.
-Evan
On Jan 9, 2005, at 9:00 PM, Chad Armstrong wrote:
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
_______________________________________________
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