• 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
NSOpenPanel: Case insensitive files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSOpenPanel: Case insensitive files
      • From: Evan Schoenberg <email@hidden>
  • Prev by Date: Re: Keep track of subviews
  • Next by Date: NSSlider in the toolbar?
  • Previous by thread: Re: Keep track of subviews
  • Next by thread: Re: NSOpenPanel: Case insensitive files
  • Index(es):
    • Date
    • Thread