iphone Programming Glossary: errorinfo
JSON parsing on iPhone SDK http://stackoverflow.com/questions/13524871/json-parsing-on-iphone-sdk
iPhone - Call a php page asynchronously and be sure it has been loaded http://stackoverflow.com/questions/5918473/iphone-call-a-php-page-asynchronously-and-be-sure-it-has-been-loaded statusCode int statusCode NSHTTPURLResponse response statusCode if statusCode 400 connection cancel NSDictionary errorInfo NSDictionary dictionaryWithObject NSString stringWithFormat NSLocalizedString @ Server returned status code d @ statusCode.. NSError statusError NSError errorWithDomain NSHTTPPropertyStatusCodeKey code statusCode userInfo errorInfo self connection connection didFailWithError statusError b This creates your NSData component void connection NSURLConnection..
iphone - try, catch question http://stackoverflow.com/questions/6477416/iphone-try-catch-question forKey OSAScriptErrorMessage errorDict setObject NSNumber numberWithInt errOSAGeneralError forKey OSAScriptErrorNumber errorInfo errorDict return input @catch OtherException e .... @finally Any clean up can happen here. Finally will be called if an..
Testing use of NSURLConnection with HTTP response error statuses http://stackoverflow.com/questions/697108/testing-use-of-nsurlconnection-with-http-response-error-statuses response statusCode if statusCode 400 connection cancel stop connecting no more delegate messages NSDictionary errorInfo NSDictionary dictionaryWithObject NSString stringWithFormat NSLocalizedString @ Server returned status code d @ statusCode.. NSError statusError NSError errorWithDomain NSHTTPPropertyStatusCodeKey code statusCode userInfo errorInfo self connection connection didFailWithError statusError This cancels the connection and calls connection didFailWithError..
|