Both CalEvent and EKEvent represents startDate, endDate and occurrenceDate. But since an event object represents the concrete event, with concrete start and end dates. What is the reason to have an occurrenceDate which is always the same as startDate?
Is there a situation when occurrenceDate does not match the startDate of an event?
From the EKEvent.
occurrenceDatedocumentation:So if you have a recurring event, and you detach an occurrence of that event from it, creating a new, separate event, the new event will have the same
occurrenceDatebut a differentstartDate.That seems like it’s backwards, but it’s what I’m getting from that passage in the docs. You can verify this by experiment by creating a new recurring event in Calendar/iCal and then detaching a subsequent occurrence of it, and looking at the detached event’s
startDateandoccurrenceDatewith Event Kit.I don’t know whether this is equally true or the same way around in Calendar Store, whose documentation doesn’t describe the difference between the
occurrenceandstartDateproperties.