These metadata attributes provide information on iCloud files. The attributes allow you to determine if a file is in the cloud, whether the file is uploading or downloading to or from iCloud, and the percentage of the action in progress.
General iCloud Attributes
These attributes provide general information on the status of iCloud files.
NSMetadataItemIsUbiquitousKey
The value is an NSNumber object that contains a Boolean indicating whether the item is stored in the cloud.
Value Type:
NSNumber
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
NSMetadataUbiquitousItemHasUnresolvedConflictsKey
The value is an NSNumber object that contains a Boolean indicating whether the item is currently in conflict with another version of the file somewhere else.
Value Type:
NSNumber
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
NSMetadataUbiquitousItemIsDownloadedKey
The value is an NSNumber object that contains a Boolean indicating whether the current version of the item has been downloaded and is available locally.
Value Type:
NSNumber
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
iCloud Downloading Attributes
The following attributes provide information on the download state of an iCloud file.
NSMetadataUbiquitousItemIsDownloadingKey
The value is an NSNumber object that contains a Boolean indicating whether the item is currently being downloaded to the local device.
Value Type:
NSNumber
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
NSMetadataUbiquitousItemPercentDownloadedKey
The value is an NSNumber object that contains the percentage of the file that has already been downloaded from the cloud.
Value Type:
NSNumber
Expected Values:
A double in the range 0.0 to 100.0.
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
iCloud Uploading Attributes
The following attributes provide information on the upload state of an iCloud file.
NSMetadataUbiquitousItemIsUploadedKey
The value is an NSNumber object that contains a Boolean indicating whether the item has been uploaded to the cloud.
Value Type:
NSNumber
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
NSMetadataUbiquitousItemIsUploadingKey
The value is an NSNumber object that contains a Boolean indicating whether the current version of the item is currently being uploaded to the cloud.
Value Type:
NSNumber
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.
NSMetadataUbiquitousItemPercentUploadedKey
The value is an NSNumber object that contains the percentage of the file that has already been uploaded to the cloud.
Value Type:
NSNumber
Expected Values:
A double in the range 0.0 to 100.0.
Framework:
/System/Library/Frameworks/Foundation.framework
Header:
NSMetadata.h
Availability:
Available in OS X v10.7 and later.Available in iOS 5.0 and later.