ckreference

CloudKit Subscription Notification for CKReference Not Working As Expected

风格不统一 提交于 2019-12-23 15:44:57
问题 I'm trying to setup a CKSubscription for records that contain a field with a CKReference to the user. But anytime a record is created, it ignores this part of the compoundPredicate and the notification never comes. Is there something different about using a CKReference in a predicate for a CKSubscription? I go into the dashboard to enter a new record under my own user recordID (while running another user in simulator) because I believe I read that if the record comes from the device, it won't

CloudKit Delete Self option for CKReference Doesn't work

余生长醉 提交于 2019-12-22 04:42:39
问题 Does anybody have experience using the CloudKit option to DeleteSelf for a CKReference ? Here is what I got from the docs: DeleteSelf The delete action for referenced records. Deleting a record also deletes any records containing CKReference objects that point to that record. The deletion of the additional records may trigger a cascade deletion of more records. The deletions are asynchronous in the default zone and immediate in a custom zone. So I've been testing this out, I have created

How to modify CloudKit Reference Lists

我怕爱的太早我们不能终老 提交于 2019-12-09 23:53:15
问题 I can modify the Reference List attribute of my CKRecord in the dashboard without problems, but how can I modify it programmatically? I currently try modifying it as a NSArray. It does not give me any sort of error but even though the array content is fine, the attribute does not get set. Also the documentation on reference lists is either well-hidden or non-existent. CKReference *reference = [[CKReference alloc] initWithRecord:connectionRecord action:CKReferenceActionNone]; NSMutableArray

CKReference .DeleteSelf attribute has no effect

不打扰是莪最后的温柔 提交于 2019-12-07 02:22:55
问题 How does .DeleteSelf really work? Docs says: When the reference object’s action is set to CKReferenceActionDeleteSelf, the target of the reference—that is, the record stored in the reference’s recordID property—becomes the owner of the source record. Deleting the target (owner) record deletes all its source records. but my impression is that deleting a target will not always delete source. And it is quite annoying when it remains in the container, client downloads it, and expect that the

CKReference .DeleteSelf attribute has no effect

冷暖自知 提交于 2019-12-05 08:20:10
How does .DeleteSelf really work? Docs says: When the reference object’s action is set to CKReferenceActionDeleteSelf, the target of the reference—that is, the record stored in the reference’s recordID property—becomes the owner of the source record. Deleting the target (owner) record deletes all its source records. but my impression is that deleting a target will not always delete source. And it is quite annoying when it remains in the container, client downloads it, and expect that the reference point to somewhere, but target does not exist when building up slice of the server data store on

CloudKit Delete Self option for CKReference Doesn't work

最后都变了- 提交于 2019-12-05 06:30:34
Does anybody have experience using the CloudKit option to DeleteSelf for a CKReference ? Here is what I got from the docs: DeleteSelf The delete action for referenced records. Deleting a record also deletes any records containing CKReference objects that point to that record. The deletion of the additional records may trigger a cascade deletion of more records. The deletions are asynchronous in the default zone and immediate in a custom zone. So I've been testing this out, I have created multiple CKReference objects both using the CloudKit Dashboard and by using my app. Whenever I do it with

How to modify CloudKit Reference Lists

依然范特西╮ 提交于 2019-12-04 19:12:55
I can modify the Reference List attribute of my CKRecord in the dashboard without problems, but how can I modify it programmatically? I currently try modifying it as a NSArray. It does not give me any sort of error but even though the array content is fine, the attribute does not get set. Also the documentation on reference lists is either well-hidden or non-existent. CKReference *reference = [[CKReference alloc] initWithRecord:connectionRecord action:CKReferenceActionNone]; NSMutableArray *list_a = [record_a[@"connections"] mutableCopy]; if (!list_a) list_a = [NSMutableArray array]; [list_a