• 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
File Extensions Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File Extensions Problem


  • Subject: File Extensions Problem
  • From: Adil Saleem <email@hidden>
  • Date: Thu, 21 Aug 2008 23:29:39 -0700 (PDT)

Hi,

I want to display in a tableview, list of all media files (audio, video files) present in a certain directory.

Currently what i am doing is that i am getting the file names in an NSMutableArray using NSFileManager function directoryContentsAtPath

I get the list, but the problem is that it get all the files. I want only those files that have a certain extension (for example mp4, mp3). How can i do that.

Thanx in advance






_______________________________________________

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

  • Follow-Ups:
    • Re: File Extensions Problem
      • From: Ingvar Nedrebo <email@hidden>
    • Re: File Extensions Problem
      • From: Andrew Merenbach <email@hidden>
    • Re: File Extensions Problem
      • From: Phil <email@hidden>
    • Re: File Extensions Problem
      • From: Michael Dautermann <email@hidden>
  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Displaying time
  • Previous by thread: Re: add dummy NSView subclass to framework?
  • Next by thread: Re: File Extensions Problem
  • Index(es):
    • Date
    • Thread