You make a valid point. I think I will make that change.
This is not really what we actually do. I cut out most of the real code to keep the example simple. The actual files we are looking for are machine generated, and the user is not really involved in the process at this point.
Paul On Aug 21, 2008, at 9:49 AM, Sean McBride wrote:
On 8/21/08 7:46 AM, Paul Archibald said:NSString *file; // Get all of the files in the source directory, loop thru them. NSEnumerator *files = [[myFileMgr directoryContentsAtPath:srcDirectory] objectEnumerator]; while(file = [files nextObject] ) { if( [[file pathExtension] isEqualToString:interestingExtension] ) { // do something with file }You might want to read the docs for "isEqualToString". Using it to compare file extensions will not behave as the user expects (case sensitivity, Unicode decomposition, etc.) -- ____________________________________________________________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
