EventKit calendarItemIdentifier and calendarItemExternalIdentifier
EventKit calendarItemIdentifier and calendarItemExternalIdentifier
- Subject: EventKit calendarItemIdentifier and calendarItemExternalIdentifier
- From: Gideon King <email@hidden>
- Date: Mon, 15 Jul 2013 22:00:47 +1000
I am converting some code from CalendarStore to EventKit, and see that there are now two identifiers.
It looks as if it I want to enable access to events across multiple devices, I should always store the calendarItemExternalIdentifier - correct? It is not clear from the documentation whether this is always going to be set, even if the calendar is not shared.
Also my users will already have event IDs recorded from the old uid property. Is this guaranteed to be the same as the calendarItemIdentifier in EventKit?
The documentation says that there could be more than one item matching the external identifier. So should my code treat them all as if they are the event/reminder I want to update, and update all occurrences? What about inconsistencies? Or should I store both the identifier and external identifier, and use the one with the identifier as the master? (assuming I can find it)
The documentation also says that the external identifier will be different if you are accessing the same thing on iOS vs OSX, which would seem to suggest that some sort of combination of identifiers would be sensible.
Any direction on this would be much appreciated.
Thanks
Gideon
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden