• 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: file type check method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file type check method


  • Subject: Re: file type check method
  • From: Brendan Younger <email@hidden>
  • Date: Wed, 20 Oct 2004 09:27:18 -0500


On Oct 20, 2004, at 12:12 AM, 김경옥 wrote:

Hi,


I'd like to check image file types and exculd unsupported image type file in the open panel.
Is there any way that I can check the file type not by file extension for image files?

Thanks

Right now the two ways to filter files are based on file extensions and type/creator attributes. If you're using QuickTime, however, you might try CanQuickTimeOpenFile() to discover which files QuickTime can open. In the future, you'll want to use Uniform Types. There's a header in the LaunchServices framework called UTType.h which gives you an idea of what it'll be like. Unfortunately, the Uniform Type route isn't very well supported right now. There are only a handful of types registered with the system and the API certainly has room to grow. Expect this to be the preferred way of doing things in the future *hint* *hint*.

Brendan Younger
_______________________________________________
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: 
 >file type check method (From: 김경옥 <email@hidden>)

  • Prev by Date: Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
  • Next by Date: Re: From Xcode 1.5, NSController cannot be saved using pre-10.2 nib file.
  • Previous by thread: Re: file type check method
  • Next by thread: [NEWBIE]: Categories, etc vs subclassing
  • Index(es):
    • Date
    • Thread