Re: The code limit to the media type to .mp3 and .aiff
Re: The code limit to the media type to .mp3 and .aiff
- Subject: Re: The code limit to the media type to .mp3 and .aiff
- From: Andrew Farmer <email@hidden>
- Date: Wed, 8 Jul 2009 21:11:06 -0700
On 8 Jul 2009, at 00:56, Bright wrote:
{ if(UTTypeConformsTo(uti, CFSTR("public.aiff-audio")))
You're looking for the wrong thing here.
% mdls /System/Library/Sounds/Morse.aiff
<...>
kMDItemContentType = "public.aifc-audio"
kMDItemContentTypeTree = (
"public.aifc-audio",
"public.audio",
"public.audiovisual-content",
"public.data",
"public.item",
"public.content"
)
But if what you're actually trying to accomplish is limiting your
listing to sound files, "public.audio" may be more appropriate.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden