• 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: Extract the names of all the files in some folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract the names of all the files in some folder


  • Subject: Re: Extract the names of all the files in some folder
  • From: Clint Shryock <email@hidden>
  • Date: Thu, 2 Jul 2009 07:50:14 -0500

http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/enumeratorAtPath
:
In the above example's if statement inside the while loop, switch the
extension to .mov.  then if it matches I would add that file's name, path,
whatever you want, to a NSMutableArray or similar and then bind your table
view to that array.

+Clint

2009/7/2 Bright <email@hidden>

> Hi all,
>   Suppose that all of the files are .mov file in a folder. Now in my App, I
> want to realize that it can
> extract the names of all the movie files in the folder. At the same time,
> it displays the names in the table
> view of my application when the application launches every time.
>   Could anyone give some directions about it ?  Both the basic principle
> and the key methods are important
> for me.
> Thx.
> Bright
>
> _______________________________________________
>
> 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
>
_______________________________________________

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: 
 >Extract the names of all the files in some folder (From: Bright <email@hidden>)

  • Prev by Date: Extract the names of all the files in some folder
  • Next by Date: Re: warning:assignment from distinct Objective-C type
  • Previous by thread: Extract the names of all the files in some folder
  • Next by thread: Setting a document's icon and default app
  • Index(es):
    • Date
    • Thread