Note that there are some explanatory texts on larger screens.

plurals
  1. POAccess Calendar Events GData in Objective C
    primarykey
    data
    text
    <p>I was wondering if anyone knew how to access data from a google calendar in an objective c application. I am trying to create an iPhone application that access the data, process it and display it in a custom format. </p> <p>I have the sources in the project file and they are compiling fine, but I am having trouble actually getting the data. Can anyone lend me some help. Thanks a lot!</p> <p>UPDATE:</p> <p>Alright, I found a simple thing on google's website that gives a brief explanation of stuff, however when I go to use the code provided I get "SIGABRT"</p> <p>I do believe the error is lying in the didFinishSelector:@selector(ticket:finishedWithFeed:error:).</p> <p>In method to handle setting everything up.</p> <pre><code>ticket = [service fetchFeedWithURL:feedURL delegate:self didFinishSelector:@selector(ticket:finishedWithFeed:error:)]; </code></pre> <p>The didFinishSelector method is as follows</p> <pre><code>- (void)ticket:(GDataServiceTicket *)ticket finishedWithFeed:(GDataFeedCalendar *)feed error:(NSError *)error { if (error == nil) { NSArray *entries = [feed entries]; if ([entries count] &gt; 0) { GDataEntryCalendar *firstCalendar = [entries objectAtIndex:0]; GDataTextConstruct *titleTextConstruct = [firstCalendar title]; NSString *title = [titleTextConstruct stringValue]; NSLog(@"first calendar's title: %@", title); } else { NSLog(@"the user has no calendars"); } } else { NSLog(@"fetch error: %@", error); } } </code></pre> <p>I get an error every time it tries to access this method. Does anyone have an idea why?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload