Event Kit Constants Reference

Framework
/System/Library/Frameworks/EventKit.framework
Companion guide
Declared in
EKError.h

Overview

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

Constants

Event Kit Error Domains

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

NSString *const EKErrorDomain;
Constants
EKErrorDomain

Event Kit errors.

Available in OS X v10.8 and later.

Declared in EKError.h.

Event Kit Error Codes

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

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

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorNoCalendar

The event is not associated with a calendar.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorNoStartDate

The event has no start date set.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorNoEndDate

The event has no end date set.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorDatesInverted

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorInternalFailure

An internal error occurred.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorCalendarReadOnly

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorDurationGreaterThanRecurrence

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorAlarmGreaterThanRecurrence

The alarm interval is greater than the recurrence interval.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorStartDateTooFarInFuture

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorStartDateCollidesWithOtherOccurrence

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorObjectBelongsToDifferentStore

The object belongs to a different calendar store.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorInvitesCannotBeMoved

The event cannot be moved because it is an invite.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorInvalidSpan

An invalid span was passed when saving or deleting.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorCalendarHasNoSource

The calendar cannot be saved with no source set.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorCalendarSourceCannotBeModified

The calendar cannot be moved to another source.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorCalendarIsImmutable

The calendar is immutable and cannot be modified or deleted.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorSourceDoesNotAllowCalendarAddDelete

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorRecurringReminderRequiresDueDate

The recurring reminder requires a due date.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorStructuredLocationsNotSupported

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

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorReminderLocationsNotSupported

The source doesn't support locations on reminders.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorAlarmProximityNotSupported

The source does not allow geofences on alarms.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorCalendarDoesNotAllowEvents

The calendar does not allow events to be added.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorCalendarDoesNotAllowReminders

The calendar does not allow reminders to be added.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorSourceDoesNotAllowReminders

The source does not allow calendars supporting reminder entity types.

Available in OS X v10.8 and later.

Declared in EKError.h.

EKErrorSourceDoesNotAllowEvents

The source does not allow calendars supporting event entity types.

Available in OS X v10.8 and later.

Declared in EKError.h.