Class

EKCalendarItem

An abstract superclass for calendar events and reminders.

Declaration

@interface EKCalendarItem : EKObject

Overview

The EKCalendarItem is a an abstract superclass for calendar events and reminders. This class provides common properties and methods for accessing properties of calendar items such as the ability to set the calendar, title, and location, as well as support for attaching notes, displaying attendees, setting multiple alarms, and specifying recurrence rules.

Topics

Accessing Calendar Items

calendarItemIdentifier

The calendar item’s unique identifier.

calendarItemExternalIdentifier

The calendar item’s external identifier as provided by the calendar server.

UUID

The calendar item’s unique identifier.

Deprecated

Accessing Calendar Item Properties

calendar

The calendar for the calendar item.

title

The title for the calendar item.

location

The location associated with the calendar item.

creationDate

The date that this calendar item was created.

lastModifiedDate

The date that the calendar item was last modified.

timeZone

The time zone for the calendar item.

URL

The URL for the calendar item.

Attaching Notes

hasNotes

A Boolean value that indicates whether the calendar item has notes.

notes

The notes associated with the calendar item.

Displaying Attendees

hasAttendees

A Boolean value that indicates whether the calendar item has attendees.

attendees

The attendees associated with the calendar item, as an array of EKParticipant objects.

Adding and Removing Alarms

hasAlarms

A Boolean value that indicates whether the calendar item has alarms.

- addAlarm:

Adds an alarm to the receiver.

- removeAlarm:

Removes an alarm from the calendar item.

alarms

The alarms associated with the calendar item, as an array of EKAlarm objects.

Setting Recurrence Rules

hasRecurrenceRules

A Boolean value that indicates whether the calendar item has recurrence rules.

- addRecurrenceRule:

Adds a recurrence rule to the recurrence rule array.

- removeRecurrenceRule:

Removes a recurrence rule from the recurrence rule array.

recurrenceRules

The recurrence rules for the calendar item.

Relationships

Inherits From

See Also

Common Objects

EKObject

An abstract superclass for all Event Kit classes that have instances that are persistent.

EKSource

An abstract superclass that represents the account a calendar belongs to.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software