Descriptions for by-property merge types are wrong way around

Originator:douglashill
Number:rdar://39089695 Date Originated:01-Apr-2018 10:50 pm
Status:Open Resolved:
Product:Documentation Product Version:Today
Classification:Other Bug Reproducible:Always
 
Summary:
The documentation for NSMergeByPropertyStoreTrumpMergePolicyType and NSMergeByPropertyObjectTrumpMergePolicyType is the wrong way around. The header file descriptions are the correct way around.

Using ‘external’ is a bit confusing without saying external to what. It seems you mean external to the current process: in other words, in the persistent store.

Steps to Reproduce:
Read the descriptions on https://developer.apple.com/documentation/coredata/nsmergepolicytype?language=objc

Expected Results:
NSMergeByPropertyStoreTrumpMergePolicyType
A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the persistent store’s changes trumping in-memory changes.

NSMergeByPropertyObjectTrumpMergePolicyType
A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the in-memory changes trumping persistent store's changes.


Actual Results:
NSMergeByPropertyStoreTrumpMergePolicyType
A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the in-memory changes trumping external changes.

NSMergeByPropertyObjectTrumpMergePolicyType
A policy that merges conflicts between the persistent store's version of the object and the current in-memory version by individual property, with the external changes trumping in-memory changes.

Version:
Today

Notes:
Header file, NSMergePolicy.h, is correct and says:

// This singleton policy merges conflicts between the persistent store's version of the object and the current in memory version. The merge occurs by individual property. For properties which have been changed in both the external source and in memory, the external changes trump the in memory ones.
COREDATA_EXTERN id NSMergeByPropertyStoreTrumpMergePolicy API_AVAILABLE(macosx(10.4),ios(3.0));    

// This singleton policy merges conflicts between the persistent store's version of the object and the current in memory version. The merge occurs by individual property. For properties which have been changed in both the external source and in memory, the in memory changes trump the external ones.
COREDATA_EXTERN id NSMergeByPropertyObjectTrumpMergePolicy API_AVAILABLE(macosx(10.4),ios(3.0));

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!