Bug 21772 - Incorrect Binding for CloudKit CKDatabase.PerformQuery
Summary: Incorrect Binding for CloudKit CKDatabase.PerformQuery
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: 7.9.2.x
Hardware: Macintosh Mac OS
: --- critical
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-08-01 13:53 UTC by Kevin Mullins
Modified: 2014-08-01 14:36 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Kevin Mullins 2014-08-01 13:53:42 UTC
The binding the CloudKit's CKDatabase.PerformQuery method is incorrect. The Action should return an NSArray of results and an NSError. See: https://developer.apple.com/library/prerelease/ios/documentation/CloudKit/Reference/CKDatabase_class/index.html#//apple_ref/occ/instm/CKDatabase/performQuery:inZoneWithID:completionHandler:

The current binding is returning an Action with a CKRecordZone and an NSError. Please see the attached screen captures.

Version: (Business Edition)
Hash: fef687c
Build date: 2014-07-30 16:28:53-0400
Comment 3 Sebastien Pouliot 2014-08-01 14:13:28 UTC
Thanks, that binding is invalid. I'll review the other CKDatabase API to be sure there's no others (e.g. copy/paste).

* just the (first) link is fine;
* wrt comment #2, Swift definition is not helpful (the ObjC one is);
* please leave bug as normal, it's not critical ;-)
Comment 4 Sebastien Pouliot 2014-08-01 14:36:01 UTC
Fixed in ios8 05c339c4c6dab9c7fc8617038fd9e417ce70e9ec

note: others were fine, but I changed an NSArray to the actual CKSubscription[] for FetchAllSubscriptions