• 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
getting metadata for a file on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting metadata for a file on iOS


  • Subject: getting metadata for a file on iOS
  • From: Roland King <email@hidden>
  • Date: Fri, 18 May 2012 10:56:38 +0800

NSMetaDataQuery on iOS only works for iCloud, this I know, however the File Metadata Search Programming Guide says the following about searching the sandbox on iOS.

" In order to search your application’s sandbox, you will need to traverse the files within the sandbox file system recursively using the NSFileManager class. Once matching file or files is found, you can access that file in the manner that you require. You are also able to use the NSMedatataItem class to retrieve metadata for that particular file."

I cannot however find which method allows me to use the NSMetadataItem class to retrieve metadata for a file and the guide gives no more information. You can get resource values  via NSURL, but that's not quite the same thing. Is there such a method or is the guide just wrong here?
_______________________________________________

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: getting metadata for a file on iOS
      • From: Quincey Morris <email@hidden>
  • Prev by Date: tons of CFURLCache worker threads?
  • Next by Date: Re: getting metadata for a file on iOS
  • Previous by thread: tons of CFURLCache worker threads?
  • Next by thread: Re: getting metadata for a file on iOS
  • Index(es):
    • Date
    • Thread