Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Saadi

macrumors newbie
Original poster
Oct 10, 2011
1
0
Hi,every one, i am retrieving google calender events using gdata library in objective c for an iphone application, i am doing it like this,


for( int i=0; i<count; i++ ){
NSMutableArray *temporary=[[NSMutableArray alloc]init];

[temporary removeAllObjects];

GDataEntryCalendarEvent *event = [events objectAtIndex:i];

// [controller.googlearray addObject:event];

GDataWhen *when = [[event objectsForExtensionClass:[GDataWhen class]] objectAtIndex:0];


if( when ){
NSDate *date1 = [[when startTime] date];
NSDate *date = [date1 dateByAddingTimeInterval:18000.0];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];

[dateFormatter setDateFormat:mad:"yy-MM-dd-HH-mm"];
[temporary addObject:date];///1 date

NSDate *date11=[[when endTime] date];
NSDate *date2 = [date11 dateByAddingTimeInterval:18000.0];
// [controller.array_objject.google_events insertObject:date atIndex:i];///2 date
[temporary addObject:date2];///1 date

[dateFormatter release];
}
//[controller.array_objject.google_events insertObject:[[event title] stringValue] atIndex:i]; /////3 title
[temporary addObject:[[event title] stringValue]];///1 date
GDataWhere *addr = [[event locations] objectAtIndex:0];
if( addr )
//[controller.array_objject.google_events insertObject:[addr stringValue] atIndex:i];///// 4 location
[temporary addObject:[addr stringValue]];
[controller.googlearray addObject:temporary];///// 4 location

}

now i am retrieving the start and ending time, title, location etc. of the event here, but i also want to retrieve the description(if in case user enters event detail while creating event on google calender) of the event, so in that case i want to retrieve that description or details of event too, i tried hard but invain, plz. guide me in this, thanx in advance. Regards Saadi
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.