Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EventKit without using Calendar or Reminders App

I am curious if there is a way to use the capabilities of EventKit - creating events, recurrence rules, etc. - without actually having to interface with the Calendar and Reminders apps?

A little more detail on requirements and such:

  1. A user launches my app, and creates a new event-style entry there
  2. The event-style entry does not actually appear in the Reminders or Calendar app
  3. My app can still access the event-style entry and its related options

Note: There could/would be a preference option to make the created event-style entries visible in the Reminders/Calendar app.

Basically, to achieve the ability to use or not use the Reminders/Calendar apps, I don't want to have to write two versions of the code - one using my own EventKit-esque implementation - and the other using the real EventKit framework APIs.

like image 238
Josh Bruce Avatar asked Nov 29 '12 17:11

Josh Bruce


1 Answers

Nope—EventKit is designed to work with the existing calendar stores that Calendar and Reminders have access to. If you want to create events that they don’t know about, you have to roll your own calendar store. You can certainly model it after EventKit for relative ease of switching between the two, but you’ll need to reimplement whatever parts of the API’s functionality you’re planning to use.

like image 101
Noah Witherspoon Avatar answered Nov 05 '22 05:11

Noah Witherspoon