getting metadata for a file on iOS
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