• 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: enumeratorAtPath - path string issue???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: enumeratorAtPath - path string issue???


  • Subject: Re: enumeratorAtPath - path string issue???
  • From: Rail Jon Rogut <email@hidden>
  • Date: Thu, 5 Jun 2008 16:14:15 -0700

Okay.. it has something to do with the NSString in the function call...

By creating a new NSString (szTest) with the same path it works okay.

- (NSMutableArray *) getFileListArray:(NSString *)searchPath
{
NSMutableArray * resultArray;

NSString *file;

NSString* szTest = [[NSString alloc] initWithString:@"/Volumes/JSD 750-1/BFD/Data/AFJ Kit 3/Hihat1/Pedal"];

NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:szTest];

NSLog(@"searchPath = %@", szTest);

NSLog(@"dirEnum = %@", dirEnum);

while (file = [dirEnum nextObject])
{
// NSLog(@"Found file = %@", file);

if ([[[file pathExtension] lowercaseString] isEqualToString: @"wav"])
{
NSLog(@"WAV File = %@", file);
}
}

return resultArray;
}


	Rail
-------------------------------------------------
Producer/Engineer
www.platinumsamples.com
mailto: email@hidden



On Jun 5, 2008, at 3:53 PM, Rail Jon Rogut wrote:

dirEnum return NULL when I use the (valid) path

/Volumes/JSD 750-1/BFD/Data/AFJ Kit 3/Hihat1/Pedal

but works fine when I use the path

/Users/railrogut/Documents

Thanks.

	Rail
-------------------------------------------------
Producer/Engineer
www.platinumsamples.com
mailto: email@hidden



On Jun 5, 2008, at 3:17 PM, Andy Lee wrote:

On Jun 5, 2008, at 5:50 PM, Rail Jon Rogut wrote:
but it doesn't like my searchPath value.. which looks fine to me....

(NSLog output): searchPath = /Volumes/JSD 750-1/BFD/Data/AFJ Kit 3/ Hihat1/Pedal

What doesn't it like about this? Is there an error or warning message?


--Andy


_______________________________________________

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

_______________________________________________

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: enumeratorAtPath - path string issue???
      • From: "Stephen J. Butler" <email@hidden>
References: 
 >enumeratorAtPath - path string issue??? (From: Rail Jon Rogut <email@hidden>)
 >Re: enumeratorAtPath - path string issue??? (From: Andy Lee <email@hidden>)
 >Re: enumeratorAtPath - path string issue??? (From: Rail Jon Rogut <email@hidden>)

  • Prev by Date: Re: NSWindow does not support utility styleMask 0x10 ???
  • Next by Date: Re: enumeratorAtPath - path string issue???
  • Previous by thread: Re: enumeratorAtPath - path string issue???
  • Next by thread: Re: enumeratorAtPath - path string issue???
  • Index(es):
    • Date
    • Thread