Re: Extract the names of all the files in some folder
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