hi, i am new to objective c, but have a question. I am following a JSON framework tutorial...all is working fine, but i am getting this annoying yellow warning in my app. I wrote a method to simply return a value. My app is working thus far in my development, but this yellow warning balloon is bothering me. Yes, it's correct that the method is ONLY in my implementation. Do i have to stick it in the header as well??? It's not meant to be a public method.
Here's the method(s):
Here's the method(s):
Code:
- (id) getData:(NSString *)url
{
NSString *jsonString = [self getJsonString:url];
//YELLLOW BALLOON HERE THAT READS- warning: 'JSONTestViewController' may not respond to '-getJsonString:'
SBJSON *jsonParser = [SBJSON new];
return [jsonParser objectWithString:jsonString error:NULL];
}
- (NSString *)getJsonString:(NSString *)url
{
NSURLRequest *urlRequest = [NSURLRequest requestWithURL: [NSURL URLWithString:url] ];
NSURLResponse *response;
NSError *error;
NSData *returnData = [NSURLConnection sendSynchronousRequest:urlRequest
returningResponse:&response
error:&error];
return [[NSString alloc] initWithData:returnData
encoding:NSUTF8StringEncoding];
}