-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Sorry if this has been asked before, but I'm wondering what the best memory management practice is for NSURLConnection. Apple's sample code uses -[NSURLConnection initWithRequest:delegate:] in one method and then releases in connection:didFailWithError: or connectionDidFinishLoading:, but this spits…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi All,
I am downloading very large data from the server. I am using NSURLConnection class for getting the data.
How to implement the pause facility so that i can resume downloading where it was left ?
Thanks
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi all,
I encounter a problem by following your comment. I would like to download different file at same time with different delegate:
.h:
NSMutableData *fileData;
.m:
NSString *imgfile = [NSString stringWithFormat:@"http://xxxx/01.jpg"];
NSURL *fileURL1 = [NSURL URLWithString:imgfile];
NSString…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all~.
I made a multi files downloader.
I implemented NSURLConnection using NSOperationQueue.
NSOpetationQueue has many NSURLConnection operations.
and, set MaxConcurrentOperationCount to 10.
I thought my code is right, But after run the project, it was wrong.
there are some connection error…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The code for this question is too long to be of any use. But I'm pretty sure my problem has to do with releasing a class.
I have a helper class, ConnectionHelper.h/.m, that handles a NSURLConnection for me. Basically, I give it the URL I want and it returns the data (it happens to do a quick json…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi, I've an issue with this piece of code:
NSURL *url = [[NSURL alloc] initWithString:@"http://authenticate.radonsystems.net/products.xml"];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url];
//Initialize the delegate.
XMLParser *parser = [[XMLParser alloc] initXMLParser];
//Set…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello community,
i have the following problem sometimes my openURL-Dialog works perfectly, then i looked at the variable from the url and that is the variable:
www.brehm-gmbh.de
but some other times there are some crazy elements at the end of the variable like this:
www.adamczyk-fenster.de%E2%80%8E
i…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
another issue where I seem to have found an solution for ObjC but not MonoTouch.
I want a NSUrl from an URL (as string).
The string may contain whitespace and backslashes.
Why is NSUrl returning null for such string, even though these are valid urls in a browser?
For example:
NSUrl foo…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In short, [NSURL URLWithString:] appears to be raising an exception. According to the documentation "If the string was malformed, returns nil." There is no mention of an exception being raised under any circumstance. In addition to this, I am both encoding the URL and checking for nil before converting…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So here's my issue:
I followed the NSURLConnection tutorial in the iPhone Developer Documentation almost to the T, and it only kinda works.
Here's where it all goes wrong:
The object seems to be created correctly and delegates to connectionDidFinishLoading, but with any URL I try to load the response…
>>> More