Mac Developer Library

Developer

EventKit Framework Reference EventKit Constants Reference

Options
Deployment Target:

On This Page
Language:

EventKit Constants Reference

This document defines constants in the Event Kit framework that are not associated with a particular class.

Constants

  • Values that are returned as the error domain property of an NSError object.

    Declaration

    Swift

    let EKErrorDomain: String

    Objective-C

    NSString *const EKErrorDomain;

    Constants

    • EKErrorDomain

      EKErrorDomain

      Event Kit errors.

      Available in OS X v10.8 and later.

  • Values that are returned as the error code property of an NSError object.

    Declaration

    Swift

    enum EKErrorCode : Int { case EventNotMutable case NoCalendar case NoStartDate case NoEndDate case DatesInverted case InternalFailure case CalendarReadOnly case DurationGreaterThanRecurrence case AlarmGreaterThanRecurrence case StartDateTooFarInFuture case StartDateCollidesWithOtherOccurrence case ObjectBelongsToDifferentStore case InvitesCannotBeMoved case InvalidSpan case CalendarHasNoSource case CalendarSourceCannotBeModified case CalendarIsImmutable case SourceDoesNotAllowCalendarAddDelete case RecurringReminderRequiresDueDate case StructuredLocationsNotSupported case ReminderLocationsNotSupported case AlarmProximityNotSupported case CalendarDoesNotAllowEvents case CalendarDoesNotAllowReminders case SourceDoesNotAllowReminders case SourceDoesNotAllowEvents case PriorityIsInvalid case InvalidEntityType case ProcedureAlarmsNotMutable case EventStoreNotAuthorized case OSNotSupported case Last }

    Objective-C

    typedef enum EKErrorCode { EKErrorEventNotMutable, EKErrorNoCalendar, EKErrorNoStartDate, EKErrorNoEndDate, EKErrorDatesInverted, EKErrorInternalFailure, EKErrorCalendarReadOnly, EKErrorDurationGreaterThanRecurrence, EKErrorAlarmGreaterThanRecurrence, EKErrorStartDateTooFarInFuture, EKErrorStartDateCollidesWithOtherOccurrence, EKErrorObjectBelongsToDifferentStore, EKErrorInvitesCannotBeMoved, EKErrorInvalidSpan, EKErrorCalendarHasNoSource, EKErrorCalendarSourceCannotBeModified, EKErrorCalendarIsImmutable, EKErrorSourceDoesNotAllowCalendarAddDelete, EKErrorRecurringReminderRequiresDueDate, EKErrorStructuredLocationsNotSupported, EKErrorReminderLocationsNotSupported, EKErrorAlarmProximityNotSupported, EKErrorCalendarDoesNotAllowEvents, EKErrorCalendarDoesNotAllowReminders, EKErrorSourceDoesNotAllowReminders, EKErrorSourceDoesNotAllowEvents, };

    Constants

    • EventNotMutable

      EKErrorEventNotMutable

      The event is not mutable and cannot be saved or deleted.

      Available in OS X v10.8 and later.

    • NoCalendar

      EKErrorNoCalendar

      The event is not associated with a calendar.

      Available in OS X v10.8 and later.

    • NoStartDate

      EKErrorNoStartDate

      The event has no start date set.

      Available in OS X v10.8 and later.

    • NoEndDate

      EKErrorNoEndDate

      The event has no end date set.

      Available in OS X v10.8 and later.

    • DatesInverted

      EKErrorDatesInverted

      The event’s end date occurs before its start date.

      Available in OS X v10.8 and later.

    • InternalFailure

      EKErrorInternalFailure

      An internal error occurred.

      Available in OS X v10.8 and later.

    • CalendarReadOnly

      EKErrorCalendarReadOnly

      The calendar is read-only and cannot have events added to it.

      Available in OS X v10.8 and later.

    • DurationGreaterThanRecurrence

      EKErrorDurationGreaterThanRecurrence

      The duration of an event is greater than its recurrence interval.

      Available in OS X v10.8 and later.

    • AlarmGreaterThanRecurrence

      EKErrorAlarmGreaterThanRecurrence

      The alarm interval is greater than the recurrence interval.

      Available in OS X v10.8 and later.

    • StartDateTooFarInFuture

      EKErrorStartDateTooFarInFuture

      The start date is further into the future than the calendar can display.

      Available in OS X v10.8 and later.

    • StartDateCollidesWithOtherOccurrence

      EKErrorStartDateCollidesWithOtherOccurrence

      The event’s start date collides with another occurrence of the event.

      Available in OS X v10.8 and later.

    • ObjectBelongsToDifferentStore

      EKErrorObjectBelongsToDifferentStore

      The object belongs to a different calendar store.

      Available in OS X v10.8 and later.

    • InvitesCannotBeMoved

      EKErrorInvitesCannotBeMoved

      The event cannot be moved because it is an invite.

      Available in OS X v10.8 and later.

    • InvalidSpan

      EKErrorInvalidSpan

      An invalid span was passed when saving or deleting.

      Available in OS X v10.8 and later.

    • CalendarHasNoSource

      EKErrorCalendarHasNoSource

      The calendar cannot be saved with no source set.

      Available in OS X v10.8 and later.

    • CalendarSourceCannotBeModified

      EKErrorCalendarSourceCannotBeModified

      The calendar cannot be moved to another source.

      Available in OS X v10.8 and later.

    • CalendarIsImmutable

      EKErrorCalendarIsImmutable

      The calendar is immutable and cannot be modified or deleted.

      Available in OS X v10.8 and later.

    • SourceDoesNotAllowCalendarAddDelete

      EKErrorSourceDoesNotAllowCalendarAddDelete

      The source doesn’t allow calendars to be added or deleted.

      Available in OS X v10.8 and later.

    • RecurringReminderRequiresDueDate

      EKErrorRecurringReminderRequiresDueDate

      The recurring reminder requires a due date.

      Available in OS X v10.8 and later.

    • StructuredLocationsNotSupported

      EKErrorStructuredLocationsNotSupported

      The source to which this calendar belongs does not support structured locations.

      Available in OS X v10.8 and later.

    • ReminderLocationsNotSupported

      EKErrorReminderLocationsNotSupported

      The source doesn't support locations on reminders.

      Available in OS X v10.8 and later.

    • AlarmProximityNotSupported

      EKErrorAlarmProximityNotSupported

      The source does not allow geofences on alarms.

      Available in OS X v10.8 and later.

    • CalendarDoesNotAllowEvents

      EKErrorCalendarDoesNotAllowEvents

      The calendar does not allow events to be added.

      Available in OS X v10.8 and later.

    • CalendarDoesNotAllowReminders

      EKErrorCalendarDoesNotAllowReminders

      The calendar does not allow reminders to be added.

      Available in OS X v10.8 and later.

    • SourceDoesNotAllowReminders

      EKErrorSourceDoesNotAllowReminders

      The source does not allow calendars supporting reminder entity types.

      Available in OS X v10.8 and later.

    • SourceDoesNotAllowEvents

      EKErrorSourceDoesNotAllowEvents

      The source does not allow calendars supporting event entity types.

      Available in OS X v10.8 and later.

    Import Statement

    Objective-C

    @import EventKit;

    Swift

    import EventKit

    Availability

    Available in OS X v10.8 and later.