• 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: NSFileManager, NSDirectoryEnumerator, and File Attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileManager, NSDirectoryEnumerator, and File Attributes


  • Subject: Re: NSFileManager, NSDirectoryEnumerator, and File Attributes
  • From: Jeffrey Walton <email@hidden>
  • Date: Sat, 26 Mar 2011 02:05:39 -0400

On Sat, Mar 26, 2011 at 1:46 AM, Quincey Morris
<email@hidden> wrote:
> On Mar 25, 2011, at 22:38, Jeffrey Walton wrote:
>
>> I'm interested in retrieving attributes of a file (extension, size,
>> and modified). NSFileManager will fetch a NSDirectoryEnumerator. From
>> NSDirectoryEnumerator, I can get a dictionary of attributes.
>>
>> Where does one find a list of keys for the dictionary? I did not see
>> it listed in Apple's documentation [1,2,3].
>
> Documented here:
>
>        http://developer.apple.com/library/ios/#DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/doc/constant_group/File_Attribute_Keys
>
> You can get there via a 2-link jump from NSDirectoryEnumerator, but you have to look carefully for the first key. :)
Got it - thanks. Not sure how I missed it (where are my glasses....).
_______________________________________________

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: 
 >NSFileManager, NSDirectoryEnumerator, and File Attributes (From: Jeffrey Walton <email@hidden>)
 >Re: NSFileManager, NSDirectoryEnumerator, and File Attributes (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Help with Custom Control
  • Next by Date: Re: Mutable and immutable class cluster implementation / "method swizzling" question
  • Previous by thread: Re: NSFileManager, NSDirectoryEnumerator, and File Attributes
  • Next by thread: doesNotRecognizeSelector exception
  • Index(es):
    • Date
    • Thread