• 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: The code limit to the media type to .mp3 and .aiff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >The code limit to the media type to .mp3 and .aiff (From: Bright <email@hidden>)

  • Prev by Date: Re: Intercepting console in an app
  • Next by Date: Re: CGSRegisterNotifyProc and unlock screen notification
  • Previous by thread: The code limit to the media type to .mp3 and .aiff
  • Next by thread: Intercepting console in an app
  • Index(es):
    • Date
    • Thread