• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel: Case insensitive files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSOpenPanel: Case insensitive files (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Non standard ascii characters
  • Next by Date: Re: Non standard ascii characters
  • Previous by thread: NSOpenPanel: Case insensitive files
  • Next by thread: NSSlider in the toolbar?
  • Index(es):
    • Date
    • Thread