couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Marino <>
Subject Re: Map view
Date Tue, 17 Sep 2013 20:29:51 GMT
Hi Rana,

It looks like your problem is mainly in using cocoa.  As a general
suggestion, we have been very successful using yajl-objc to parse/deal with

As a more particular set of suggestions, I would:

1. Boil down your problem to the most basic issue that you don't
understand.  In your case, I'm not sure if it's generally a problem with
using NSURLConnection or something else.
2. Google it, there is probably a solution/explanation for your particular
problem somewhere on stackoverflow.  If it's an issue with NSURLConnection,
there are a lot of good resources including apple's documentation.
3. If you exhaust that route, in this case consider submitting to the
cocoa-dev listserv (

Regarding 1, most people on listservs are very happy to help, but it's very
difficult to get a chunk of code and understand immediately where the
problem is.  That is, a concise piece of code should always be accompanied
with an explicit description of what you are trying to do and where your
understanding starts to get thin.

Cheers and good luck,

Am 17.09.2013 um 21:45 schrieb Rana Bunnni <>:

Thanks for answering,
I tried to do the following : but its not working,

[NSURLConnection sendAsynchronousRequest:request queue:queue1
completionHandler:^(NSURLResponse *responseBody, NSData *data, NSError
*error) {

        id response = [NSJSONSerialization JSONObjectWithData:data
options:0 error:NULL];

                Course *course = [[Course alloc]init];
                NSString * classGroup =[[response objectAtIndex:0 ]
               course.class_group = classGroup;
                 NSLog(@"class_group: %@",course.class_group);

                NSString * course_name =[[response objectAtIndex:0 ]
                course.course_name = course_name;

                NSString * date =[[response objectAtIndex:0 ]
       = date;

                [allContents addObject:course];
              NSLog(@"student: %@",allContents);

           [self.tableView reloadData];

How can i get the response from the Url ?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message