One Quickie

Directory listing of your container (iCloud->NSFIleManager)
Metadata query not coming back with anything. Is there actually any Stuff up in the cloud? Get a listing of the ubiqutious container dealie:
NSFileManager *fm = [NSFileManager defaultManager];
NSURL *ubiquitousFolder = [fm URLForUbiquityContainerIdentifier:nil];
NSLog (@"Location of ubiquitous folder: %@", ubiquitousFolder);

// Then use standard ways of iterating, given a URL, such as
NSArray *contents = [fm contentsOfDirectoryAtURL: ubiquitousFolder
                        includingPropertiesForKeys: @[]
                        options: 0
                        error: &error];
if (contents == nil) {
    NSLog (@"could not contents of %@ - %@", mediaDirectory, error);

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book