From 16c94b5275f5f4a66f64fb1cf65ea3197a5f8582 Mon Sep 17 00:00:00 2001 From: EddyVerbruggen Date: Mon, 7 Sep 2015 19:28:33 +0200 Subject: [PATCH] Fix for generics usages introduced with #228. --- src/ios/Calendar.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ios/Calendar.m b/src/ios/Calendar.m index cf45201a..02bbed51 100644 --- a/src/ios/Calendar.m +++ b/src/ios/Calendar.m @@ -132,10 +132,10 @@ - (void) modifyEventWithOptions:(CDVInvokedUrlCommand*)command { [self.commandDelegate runInBackground: ^{ - NSArray* calendars = nil; + NSArray *calendars = nil; if (calendarName == (id)[NSNull null]) { - calendars = self.eventStore.calendars; + calendars = [self.eventStore calendarsForEntityType:EKEntityTypeEvent]; if (calendars.count == 0) { CDVPluginResult *pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"No default calendar found. Is access to the Calendar blocked for this app?"]; [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId]; @@ -303,7 +303,7 @@ - (NSArray*) findEKEventsWithTitle: (NSString *)title notes: (NSString *)notes startDate: (NSDate *)startDate endDate: (NSDate *)endDate - calendars: (NSArray*) calendars { + calendars: (NSArray*)calendars { NSMutableArray *predicateStrings = [NSMutableArray arrayWithCapacity:3]; if (title != (id)[NSNull null] && title.length > 0) { @@ -735,7 +735,7 @@ - (void) findEventWithOptions:(CDVInvokedUrlCommand*)command { NSTimeInterval _endInterval = [endTime doubleValue] / 1000; // strip millis NSDate *myEndDate = [NSDate dateWithTimeIntervalSince1970:_endInterval]; - NSArray* calendars = nil; + NSArray* calendars = nil; if (calendarName == (id)[NSNull null]) { calendars = [self.eventStore calendarsForEntityType:EKEntityTypeEvent];