Documentation Archive Developer
Search

EventKit Changes for Objective-C

EventKit

EKAlarm.h

Declaration
From
@property(nonatomic, copy) NSDate *absoluteDate
To
@property(nonatomic, copy, nullable) NSDate *absoluteDate

Declaration
From
+ (EKAlarm *)alarmWithAbsoluteDate:(NSDate *)date
To
+ (EKAlarm * _Nonnull)alarmWithAbsoluteDate:(NSDate * _Nonnull)date

Declaration
From
+ (EKAlarm *)alarmWithRelativeOffset:(NSTimeInterval)offset
To
+ (EKAlarm * _Nonnull)alarmWithRelativeOffset:(NSTimeInterval)offset

Declaration
From
@property(nonatomic, copy) NSString *emailAddress
To
@property(nonatomic, copy, nullable) NSString *emailAddress

Declaration
From
@property(nonatomic, copy) NSString *soundName
To
@property(nonatomic, copy, nullable) NSString *soundName

Declaration
From
@property(nonatomic, copy) EKStructuredLocation *structuredLocation
To
@property(nonatomic, copy, nullable) EKStructuredLocation *structuredLocation

Modified EKAlarm.url
Declaration
From
@property(nonatomic, copy) NSURL *url
To
@property(nonatomic, copy, nullable) NSURL *url

EKCalendar.h

Declaration
From
+ (EKCalendar *)calendarForEntityType:(EKEntityType)entityType eventStore:(EKEventStore *)eventStore
To
+ (EKCalendar * _Nonnull)calendarForEntityType:(EKEntityType)entityType eventStore:(EKEventStore * _Nonnull)eventStore

Declaration
From
@property(nonatomic, readonly) NSString *calendarIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *calendarIdentifier

Declaration
From
@property(nonatomic, copy) NSColor *color
To
@property(nonatomic, copy, nonnull) NSColor *color

Declaration
From
@property(nonatomic, strong) EKSource *source
To
@property(nonatomic, strong, nonnull) EKSource *source

Declaration
From
@property(nonatomic, copy) NSString *title
To
@property(nonatomic, copy, nonnull) NSString *title

EKCalendarItem.h

Declaration
From
- (void)addAlarm:(EKAlarm *)alarm
To
- (void)addAlarm:(EKAlarm * _Nonnull)alarm

Declaration
From
- (void)addRecurrenceRule:(EKRecurrenceRule *)rule
To
- (void)addRecurrenceRule:(EKRecurrenceRule * _Nonnull)rule

Declaration
From
@property(nonatomic, copy) NSArray *alarms
To
@property(nonatomic, copy, nullable) NSArray<EKAlarm *> *alarms

Declaration
From
@property(nonatomic, copy, readonly) NSArray *attendees
To
@property(nonatomic, readonly, nullable) NSArray<__kindof EKParticipant *> *attendees

Declaration
From
@property(nonatomic, strong) EKCalendar *calendar
To
@property(nonatomic, strong, nonnull) EKCalendar *calendar

Declaration
From
@property(nonatomic, readonly) NSString *calendarItemExternalIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *calendarItemExternalIdentifier

Declaration
From
@property(nonatomic, readonly) NSString *calendarItemIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *calendarItemIdentifier

Declaration
From
@property(nonatomic, readonly) NSDate *creationDate
To
@property(nonatomic, readonly, nullable) NSDate *creationDate

Declaration
From
@property(nonatomic, readonly) NSDate *lastModifiedDate
To
@property(nonatomic, readonly, nullable) NSDate *lastModifiedDate

Declaration
From
@property(nonatomic, copy) NSString *location
To
@property(nonatomic, copy, nullable) NSString *location

Declaration
From
@property(nonatomic, copy) NSString *notes
To
@property(nonatomic, copy, nullable) NSString *notes

Declaration
From
@property(nonatomic, copy) NSArray *recurrenceRules
To
@property(nonatomic, copy, nullable) NSArray<EKRecurrenceRule *> *recurrenceRules

Declaration
From
- (void)removeAlarm:(EKAlarm *)alarm
To
- (void)removeAlarm:(EKAlarm * _Nonnull)alarm

Declaration
From
- (void)removeRecurrenceRule:(EKRecurrenceRule *)rule
To
- (void)removeRecurrenceRule:(EKRecurrenceRule * _Nonnull)rule

Declaration
From
@property(nonatomic, copy) NSTimeZone *timeZone
To
@property(nonatomic, copy, nullable) NSTimeZone *timeZone

Declaration
From
@property(nonatomic, copy) NSString *title
To
@property(nonatomic, copy, nonnull) NSString *title

Declaration
From
@property(nonatomic, copy) NSURL *URL
To
@property(nonatomic, copy, nullable) NSURL *URL

EKError.h

EKEvent.h

DeclarationDeprecation
From
@property(nonatomic, readonly) NSString *birthdayPersonUniqueID
--
To
@property(nonatomic, readonly, nullable) NSString *birthdayPersonUniqueID
OS X 10.11

Declaration
From
- (NSComparisonResult)compareStartDateWithEvent:(EKEvent *)other
To
- (NSComparisonResult)compareStartDateWithEvent:(EKEvent * _Nonnull)other

Declaration
From
@property(nonatomic, copy) NSDate *endDate
To
@property(nonatomic, copy, nonnull) NSDate *endDate

Declaration
From
@property(nonatomic, readonly) NSString *eventIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *eventIdentifier

Declaration
From
+ (EKEvent *)eventWithEventStore:(EKEventStore *)eventStore
To
+ (EKEvent * _Nonnull)eventWithEventStore:(EKEventStore * _Nonnull)eventStore

Declaration
From
@property(nonatomic, readonly) NSDate *occurrenceDate
To
@property(nonatomic, readonly, nonnull) NSDate *occurrenceDate

Declaration
From
@property(nonatomic, readonly) EKParticipant *organizer
To
@property(nonatomic, readonly, nullable) EKParticipant *organizer

Declaration
From
@property(nonatomic, copy) NSDate *startDate
To
@property(nonatomic, copy, nonnull) NSDate *startDate

EKEventStore.h

Declaration
From
- (NSArray *)calendarItemsWithExternalIdentifier:(NSString *)externalIdentifier
To
- (NSArray<EKCalendarItem *> * _Nonnull)calendarItemsWithExternalIdentifier:(NSString * _Nonnull)externalIdentifier

Declaration
From
- (EKCalendarItem *)calendarItemWithIdentifier:(NSString *)identifier
To
- (EKCalendarItem * _Nonnull)calendarItemWithIdentifier:(NSString * _Nonnull)identifier

Declaration
From
- (NSArray *)calendarsForEntityType:(EKEntityType)entityType
To
- (NSArray<EKCalendar *> * _Nonnull)calendarsForEntityType:(EKEntityType)entityType

Declaration
From
- (EKCalendar *)calendarWithIdentifier:(NSString *)identifier
To
- (EKCalendar * _Nullable)calendarWithIdentifier:(NSString * _Nonnull)identifier

Declaration
From
- (void)cancelFetchRequest:(id)fetchIdentifier
To
- (void)cancelFetchRequest:(id _Nonnull)fetchIdentifier

Declaration
From
- (BOOL)commit:(NSError **)error
To
- (BOOL)commit:(NSError * _Nullable * _Nullable)error

Declaration
From
@property(nonatomic, readonly) EKCalendar *defaultCalendarForNewEvents
To
@property(nonatomic, readonly, nonnull) EKCalendar *defaultCalendarForNewEvents

Declaration
From
- (EKCalendar *)defaultCalendarForNewReminders
To
- (EKCalendar * _Nonnull)defaultCalendarForNewReminders

Declaration
From
- (void)enumerateEventsMatchingPredicate:(NSPredicate *)predicate usingBlock:(EKEventSearchCallback)block
To
- (void)enumerateEventsMatchingPredicate:(NSPredicate * _Nonnull)predicate usingBlock:(EKEventSearchCallback _Nonnull)block

Declaration
From
- (NSArray *)eventsMatchingPredicate:(NSPredicate *)predicate
To
- (NSArray<EKEvent *> * _Nonnull)eventsMatchingPredicate:(NSPredicate * _Nonnull)predicate

Declaration
From
@property(nonatomic, readonly) NSString *eventStoreIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *eventStoreIdentifier

Declaration
From
- (EKEvent *)eventWithIdentifier:(NSString *)identifier
To
- (EKEvent * _Nullable)eventWithIdentifier:(NSString * _Nonnull)identifier

Declaration
From
- (id)fetchRemindersMatchingPredicate:(NSPredicate *)predicate completion:(void (^)(NSArray *reminders))completion
To
- (id _Nonnull)fetchRemindersMatchingPredicate:(NSPredicate * _Nonnull)predicate completion:(void (^ _Nonnull)(NSArray<EKReminder *> * _Nullable reminders))completion

Declaration
From
- (id)init
To
- (id _Nonnull)init

Declaration
From
- (id)initWithAccessToEntityTypes:(EKEntityMask)entityTypes
To
- (id _Nonnull)initWithAccessToEntityTypes:(EKEntityMask)entityTypes

Declaration
From
- (NSPredicate *)predicateForCompletedRemindersWithCompletionDateStarting:(NSDate *)startDate ending:(NSDate *)endDate calendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForCompletedRemindersWithCompletionDateStarting:(NSDate * _Nullable)startDate ending:(NSDate * _Nullable)endDate calendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSPredicate *)predicateForEventsWithStartDate:(NSDate *)startDate endDate:(NSDate *)endDate calendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForEventsWithStartDate:(NSDate * _Nonnull)startDate endDate:(NSDate * _Nonnull)endDate calendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSPredicate *)predicateForIncompleteRemindersWithDueDateStarting:(NSDate *)startDate ending:(NSDate *)endDate calendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForIncompleteRemindersWithDueDateStarting:(NSDate * _Nullable)startDate ending:(NSDate * _Nullable)endDate calendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (NSPredicate *)predicateForRemindersInCalendars:(NSArray *)calendars
To
- (NSPredicate * _Nonnull)predicateForRemindersInCalendars:(NSArray<EKCalendar *> * _Nullable)calendars

Declaration
From
- (BOOL)removeCalendar:(EKCalendar *)calendar commit:(BOOL)commit error:(NSError **)error
To
- (BOOL)removeCalendar:(EKCalendar * _Nonnull)calendar commit:(BOOL)commit error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)removeEvent:(EKEvent *)event span:(EKSpan)span commit:(BOOL)commit error:(NSError **)error
To
- (BOOL)removeEvent:(EKEvent * _Nonnull)event span:(EKSpan)span commit:(BOOL)commit error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)removeReminder:(EKReminder *)reminder commit:(BOOL)commit error:(NSError **)error
To
- (BOOL)removeReminder:(EKReminder * _Nonnull)reminder commit:(BOOL)commit error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (void)requestAccessToEntityType:(EKEntityType)entityType completion:(EKEventStoreRequestAccessCompletionHandler)completion
To
- (void)requestAccessToEntityType:(EKEntityType)entityType completion:(EKEventStoreRequestAccessCompletionHandler _Nonnull)completion

Declaration
From
- (BOOL)saveCalendar:(EKCalendar *)calendar commit:(BOOL)commit error:(NSError **)error
To
- (BOOL)saveCalendar:(EKCalendar * _Nonnull)calendar commit:(BOOL)commit error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)saveEvent:(EKEvent *)event span:(EKSpan)span commit:(BOOL)commit error:(NSError **)error
To
- (BOOL)saveEvent:(EKEvent * _Nonnull)event span:(EKSpan)span commit:(BOOL)commit error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (BOOL)saveReminder:(EKReminder *)reminder commit:(BOOL)commit error:(NSError **)error
To
- (BOOL)saveReminder:(EKReminder * _Nonnull)reminder commit:(BOOL)commit error:(NSError * _Nullable * _Nullable)error

Declaration
From
- (NSArray *)sources
To
@property(nonatomic, readonly, nonnull) NSArray<EKSource *> *sources

Declaration
From
- (EKSource *)sourceWithIdentifier:(NSString *)identifier
To
- (EKSource * _Nonnull)sourceWithIdentifier:(NSString * _Nonnull)identifier

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

EKObject.h

Declaration
From
- (BOOL)hasChanges
To
@property(nonatomic, readonly) BOOL hasChanges

EKParticipant.h

Removed EKParticipant.isCurrentUser
DeclarationDeprecation
From
- (ABPerson *)ABPersonInAddressBook:(ABAddressBook *)addressBook
--
To
- (ABPerson * _Nullable)ABPersonInAddressBook:(ABAddressBook * _Nonnull)addressBook
OS X 10.11

Declaration
From
@property(nonatomic, readonly) NSString *name
To
@property(nonatomic, readonly, nullable) NSString *name

Declaration
From
@property(nonatomic, readonly) NSURL *URL
To
@property(nonatomic, readonly, nonnull) NSURL *URL

EKRecurrenceDayOfWeek.h

Declaration
From
@property(nonatomic, readonly) NSInteger dayOfTheWeek
To
@property(nonatomic, readonly) EKWeekday dayOfTheWeek

Declaration
From
+ (EKRecurrenceDayOfWeek *)dayOfWeek:(NSInteger)dayOfTheWeek
To
+ (instancetype _Nonnull)dayOfWeek:(EKWeekday)dayOfTheWeek

Declaration
From
+ (EKRecurrenceDayOfWeek *)dayOfWeek:(NSInteger)dayOfTheWeek weekNumber:(NSInteger)weekNumber
To
+ (instancetype _Nonnull)dayOfWeek:(EKWeekday)dayOfTheWeek weekNumber:(NSInteger)weekNumber

Declaration
From
- (id)initWithDayOfTheWeek:(NSInteger)dayOfTheWeek weekNumber:(NSInteger)weekNumber
To
- (id _Nonnull)initWithDayOfTheWeek:(EKWeekday)dayOfTheWeek weekNumber:(NSInteger)weekNumber

EKRecurrenceEnd.h

Declaration
From
@property(nonatomic, readonly) NSDate *endDate
To
@property(nonatomic, readonly, nullable) NSDate *endDate

Declaration
From
+ (id)recurrenceEndWithEndDate:(NSDate *)endDate
To
+ (instancetype _Nonnull)recurrenceEndWithEndDate:(NSDate * _Nonnull)endDate

Declaration
From
+ (id)recurrenceEndWithOccurrenceCount:(NSUInteger)occurrenceCount
To
+ (instancetype _Nonnull)recurrenceEndWithOccurrenceCount:(NSUInteger)occurrenceCount

EKRecurrenceRule.h

Declaration
From
@property(nonatomic, readonly) NSString *calendarIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *calendarIdentifier

Declaration
From
@property(nonatomic, readonly) NSArray *daysOfTheMonth
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *daysOfTheMonth

Declaration
From
@property(nonatomic, readonly) NSArray *daysOfTheWeek
To
@property(nonatomic, readonly, nullable) NSArray<EKRecurrenceDayOfWeek *> *daysOfTheWeek

Declaration
From
@property(nonatomic, readonly) NSArray *daysOfTheYear
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *daysOfTheYear

Declaration
From
- (id)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval daysOfTheWeek:(NSArray *)days daysOfTheMonth:(NSArray *)monthDays monthsOfTheYear:(NSArray *)months weeksOfTheYear:(NSArray *)weeksOfTheYear daysOfTheYear:(NSArray *)daysOfTheYear setPositions:(NSArray *)setPositions end:(EKRecurrenceEnd *)end
To
- (instancetype _Nonnull)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval daysOfTheWeek:(NSArray<EKRecurrenceDayOfWeek *> * _Nullable)days daysOfTheMonth:(NSArray<NSNumber *> * _Nullable)monthDays monthsOfTheYear:(NSArray<NSNumber *> * _Nullable)months weeksOfTheYear:(NSArray<NSNumber *> * _Nullable)weeksOfTheYear daysOfTheYear:(NSArray<NSNumber *> * _Nullable)daysOfTheYear setPositions:(NSArray<NSNumber *> * _Nullable)setPositions end:(EKRecurrenceEnd * _Nullable)end

Declaration
From
- (id)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval end:(EKRecurrenceEnd *)end
To
- (instancetype _Nonnull)initRecurrenceWithFrequency:(EKRecurrenceFrequency)type interval:(NSInteger)interval end:(EKRecurrenceEnd * _Nullable)end

Declaration
From
@property(nonatomic, readonly) NSArray *monthsOfTheYear
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *monthsOfTheYear

Declaration
From
@property(nonatomic, copy) EKRecurrenceEnd *recurrenceEnd
To
@property(nonatomic, copy, nullable) EKRecurrenceEnd *recurrenceEnd

Declaration
From
@property(nonatomic, readonly) NSArray *setPositions
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *setPositions

Declaration
From
@property(nonatomic, readonly) NSArray *weeksOfTheYear
To
@property(nonatomic, readonly, nullable) NSArray<NSNumber *> *weeksOfTheYear

EKReminder.h

Declaration
From
@property(nonatomic, copy) NSDate *completionDate
To
@property(nonatomic, copy, nullable) NSDate *completionDate

Declaration
From
@property(nonatomic, copy) NSDateComponents *dueDateComponents
To
@property(nonatomic, copy, nullable) NSDateComponents *dueDateComponents

Declaration
From
+ (EKReminder *)reminderWithEventStore:(EKEventStore *)eventStore
To
+ (EKReminder * _Nonnull)reminderWithEventStore:(EKEventStore * _Nonnull)eventStore

Declaration
From
@property(nonatomic, copy) NSDateComponents *startDateComponents
To
@property(nonatomic, copy, nullable) NSDateComponents *startDateComponents

EKSource.h

Declaration
From
- (NSSet *)calendarsForEntityType:(EKEntityType)entityType
To
- (NSSet<EKCalendar *> * _Nonnull)calendarsForEntityType:(EKEntityType)entityType

Declaration
From
@property(nonatomic, readonly) NSString *sourceIdentifier
To
@property(nonatomic, readonly, nonnull) NSString *sourceIdentifier

Declaration
From
@property(nonatomic, readonly) NSString *title
To
@property(nonatomic, readonly, nonnull) NSString *title

EKStructuredLocation.h

Declaration
From
@property(nonatomic, strong) CLLocation *geoLocation
To
@property(nonatomic, strong, nullable) CLLocation *geoLocation

Declaration
From
+ (EKStructuredLocation *)locationWithTitle:(NSString *)title
To
+ (instancetype _Nonnull)locationWithTitle:(NSString * _Nonnull)title

Declaration
From
@property(nonatomic, strong) NSString *title
To
@property(nonatomic, strong, nonnull) NSString *title

EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Header
FromEventKit/EKEventStore.h
ToEventKit/EKTypes.h

Modified EKFriday
Deprecation
From--
ToOS X 10.11

Modified EKMonday
Deprecation
From--
ToOS X 10.11

Modified EKSaturday
Deprecation
From--
ToOS X 10.11

Modified EKSunday
Deprecation
From--
ToOS X 10.11

Modified EKThursday
Deprecation
From--
ToOS X 10.11

Modified EKTuesday
Deprecation
From--
ToOS X 10.11

Modified EKWednesday
Deprecation
From--
ToOS X 10.11