I got this iOS project where I access the calendar - and I am
completely baffled.

    [store requestAccessToEntityType:EKEntityTypeEvent
completion:^(BOOL granted, NSError *accessError) {
        if (granted) {

            NSString *calendarIdentifier = [[NSUserDefaults
standardUserDefaults] valueForKey:kCalendarIdentifier];

            EKCalendar *calendar;

            NSLog(@"calendarIdentifier: %@", calendarIdentifier);

            if (calendarIdentifier) {
                calendar = [store calendarWithIdentifier:calendarIdentifier];
            }

            NSLog(@"calendar: %@", calendar);


When running on the device I only see

  calendarIdentifier: ...

The next line never shows!

  calendar: ...

I don't see how that is even possible.

So I try the debugger. The debugger should catch all exceptions and I
set a breakpoint to step through. But when I step over
"calendarWithIdentifier:" it just continues(!) the app and also never
reaches the second log line!

Whaaat!?

Anyone a clue what could be going wrong here? ...or what else to try?


cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to