Re: file type check method
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