EKEvent use readwrite property to calcuate its hash

Originator:pitiphong.ph
Number:rdar://15583399 Date Originated:04-Dec-2013 09:14 PM
Status:Open Resolved:
Product:iOS SDK Product Version:7.0
Classification:Other Bug Reproducible:Always
 
Summary:
EKEvent use readwrite property to calculate its startDate which is read/write property

Steps to Reproduce:
1. Create NSMutableSet and EKEvent
2. Add event to that set
3. Change the startDate of the event
4. Check if the event is in the set. ([set containsObject:event])

Expected Results:
Checking return YES

Actual Results:
Checking return NO

Regression:


Notes:
The hash value ([event hash]) is changed after I set the startDate of the event. From the NSObject's hash method documentation. The object's hash should not calculated from the mutable property.

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!