Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EKEventstore and unique calendar identifier

I have a question about EKCalendar's calendarIdentifier property. Is this ID unique on a global level, or on a per-source level? E.g. can I safely store the calendarIdentifier in my app to smoothly identify a calendar across all calendars in the event store (no matter what EKSource they're in) or do I also need to save the EKSource's identifier associated with the calendar?

I have a calendar selection feature in my app, and I want to safely store and load the correct calendar (within the correct account) upon app restart.

Thanks in advance.

like image 535
user944943 Avatar asked Nov 14 '11 07:11

user944943


1 Answers

From my personal experience and from the description of the property in EKCalendar's class reference it is local to the EKEventStore. An EKCalendar has an EKSource as it's property at the same level as the calendarIdentifier string.

like image 168
craigmarch Avatar answered Sep 24 '22 20:09

craigmarch