• 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: NSDirectoryEnumerator question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDirectoryEnumerator question


  • Subject: Re: NSDirectoryEnumerator question
  • From: James Bucanek <email@hidden>
  • Date: Sat, 10 Feb 2007 09:00:49 -0700

Simon Raisin wrote on Saturday, February 10, 2007:
>I am using NSDirectoryEnumerator to process files and directories.  I'd like
>to know how I can obtain the file|directory name using the object returned
>from [enumerator nextObject].

The object returned from nextObject *is* the path to the item. It's an NSString. See the example code in the documentation for enumeratorAtPath:.

<file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/enumeratorAtPath:>

--
James Bucanek
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >NSDirectoryEnumerator question (From: "Simon Raisin" <email@hidden>)

  • Prev by Date: Register a Drag destination for ANYTHING... mars-alien-spaceship included
  • Next by Date: Re: NSDirectoryEnumerator question
  • Previous by thread: NSDirectoryEnumerator question
  • Next by thread: Re: NSDirectoryEnumerator question
  • Index(es):
    • Date
    • Thread