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: NSString!

    Objective-C

    NSString *const EKErrorDomain;

    Constants

    • EKErrorDomain

      EKErrorDomain

      Event Kit errors.

      Available in OS X v10.8 and later.

    Import Statement

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

    Declaration

    Swift

    struct EKErrorCode { init(_ value: UInt32) var value: UInt32 }

    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

    • EKErrorEventNotMutable

      EKErrorEventNotMutable

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

      Available in OS X v10.8 and later.

    • EKErrorNoCalendar

      EKErrorNoCalendar

      The event is not associated with a calendar.

      Available in OS X v10.8 and later.

    • EKErrorNoStartDate

      EKErrorNoStartDate

      The event has no start date set.

      Available in OS X v10.8 and later.

    • EKErrorNoEndDate

      EKErrorNoEndDate

      The event has no end date set.

      Available in OS X v10.8 and later.

    • EKErrorDatesInverted

      EKErrorDatesInverted

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

      Available in OS X v10.8 and later.

    • EKErrorInternalFailure

      EKErrorInternalFailure

      An internal error occurred.

      Available in OS X v10.8 and later.

    • EKErrorCalendarReadOnly

      EKErrorCalendarReadOnly

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

      Available in OS X v10.8 and later.

    • EKErrorDurationGreaterThanRecurrence

      EKErrorDurationGreaterThanRecurrence

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

      Available in OS X v10.8 and later.

    • EKErrorAlarmGreaterThanRecurrence

      EKErrorAlarmGreaterThanRecurrence

      The alarm interval is greater than the recurrence interval.

      Available in OS X v10.8 and later.

    • EKErrorStartDateTooFarInFuture

      EKErrorStartDateTooFarInFuture

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

      Available in OS X v10.8 and later.

    • EKErrorStartDateCollidesWithOtherOccurrence

      EKErrorStartDateCollidesWithOtherOccurrence

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

      Available in OS X v10.8 and later.

    • EKErrorObjectBelongsToDifferentStore

      EKErrorObjectBelongsToDifferentStore

      The object belongs to a different calendar store.

      Available in OS X v10.8 and later.

    • EKErrorInvitesCannotBeMoved

      EKErrorInvitesCannotBeMoved

      The event cannot be moved because it is an invite.

      Available in OS X v10.8 and later.

    • EKErrorInvalidSpan

      EKErrorInvalidSpan

      An invalid span was passed when saving or deleting.

      Available in OS X v10.8 and later.

    • EKErrorCalendarHasNoSource

      EKErrorCalendarHasNoSource

      The calendar cannot be saved with no source set.

      Available in OS X v10.8 and later.

    • EKErrorCalendarSourceCannotBeModified

      EKErrorCalendarSourceCannotBeModified

      The calendar cannot be moved to another source.

      Available in OS X v10.8 and later.

    • EKErrorCalendarIsImmutable

      EKErrorCalendarIsImmutable

      The calendar is immutable and cannot be modified or deleted.

      Available in OS X v10.8 and later.

    • EKErrorSourceDoesNotAllowCalendarAddDelete

      EKErrorSourceDoesNotAllowCalendarAddDelete

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

      Available in OS X v10.8 and later.

    • EKErrorRecurringReminderRequiresDueDate

      EKErrorRecurringReminderRequiresDueDate

      The recurring reminder requires a due date.

      Available in OS X v10.8 and later.

    • EKErrorStructuredLocationsNotSupported

      EKErrorStructuredLocationsNotSupported

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

      Available in OS X v10.8 and later.

    • EKErrorReminderLocationsNotSupported

      EKErrorReminderLocationsNotSupported

      The source doesn't support locations on reminders.

      Available in OS X v10.8 and later.

    • EKErrorAlarmProximityNotSupported

      EKErrorAlarmProximityNotSupported

      The source does not allow geofences on alarms.

      Available in OS X v10.8 and later.

    • EKErrorCalendarDoesNotAllowEvents

      EKErrorCalendarDoesNotAllowEvents

      The calendar does not allow events to be added.

      Available in OS X v10.8 and later.

    • EKErrorCalendarDoesNotAllowReminders

      EKErrorCalendarDoesNotAllowReminders

      The calendar does not allow reminders to be added.

      Available in OS X v10.8 and later.

    • EKErrorSourceDoesNotAllowReminders

      EKErrorSourceDoesNotAllowReminders

      The source does not allow calendars supporting reminder entity types.

      Available in OS X v10.8 and later.

    • EKErrorSourceDoesNotAllowEvents

      EKErrorSourceDoesNotAllowEvents

      The source does not allow calendars supporting event entity types.

      Available in OS X v10.8 and later.

    Import Statement

    import EventKit

    Availability

    Available in OS X v10.8 and later.