Re: asynchronous nsurlconnection in nsoperation

2012-03-23 Thread Andreas Grosam
On Mar 23, 2012, at 11:25 AM, Steve Sisak wrote: > At 6:59 PM +0300 3/21/12, Ariel Feinerman wrote: >> I wish to insert an asynchronous NSURLConnection into non-concurrent >> NSOperation the reason is to allow necessarily unarchive actions on the >> streaming date so > > Look at (and steal code

Re: asynchronous nsurlconnection in nsoperation

2012-03-23 Thread Steve Sisak
At 6:59 PM +0300 3/21/12, Ariel Feinerman wrote: I wish to insert an asynchronous NSURLConnection into non-concurrent NSOperation the reason is to allow necessarily unarchive actions on the streaming date so Look at (and steal code from) the LinkedImageFetcher sample:

Re: asynchronous nsurlconnection in nsoperation

2012-03-23 Thread Ariel Feinerman
Andreas, thank you for your answer! What is the well? I believe the streaming work so we unarchive the this on the fly then write to url to avoid unnecessary actions with copy * * On Thu, Mar 22, 2012 at 4:10 PM, Andreas Grosam wrote: > > On Mar 21, 2012, at 4:59 PM, Ariel Feinerman wrote: > > >

Re: asynchronous nsurlconnection in nsoperation

2012-03-22 Thread Andreas Grosam
On Mar 21, 2012, at 4:59 PM, Ariel Feinerman wrote: > Hi, > I wish to insert an asynchronous NSURLConnection into non-concurrent > NSOperation > the reason is to allow necessarily unarchive actions on the streaming date > Is this for iOS or Mac OS? > This for iOS > > The date is very large the

Re: asynchronous nsurlconnection in nsoperation

2012-03-22 Thread Ariel Feinerman
Is this for iOS or Mac OS? This for iOS // dispatch_async(kBgQueue, ^{ NSData* data = [NSData dataWithContentsOfURL: myUrl]; // THIS IS WHAT YOU WANT Ariel ** The date is very large their amount is 400 Mb so the asynchronous is necessarily one cannot be in memory at once On Wed, Mar 21,

Re: asynchronous nsurlconnection in nsoperation

2012-03-21 Thread Sebastian Celis
On Wed, Mar 21, 2012 at 10:59 AM, Ariel Feinerman wrote: > I wish to insert an asynchronous NSURLConnection into non-concurrent > NSOperation Hi Ariel, MBRequest does this. It is done by forcing the operation's runloop to continue running while the network connection is in progress. I would reco

Re: asynchronous nsurlconnection in nsoperation

2012-03-21 Thread Alex Zavatone
Is this for iOS or Mac OS? I've used Grand Central Dispatch and [NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]; The second example is synchronous. There is also: NSData *response_NSData = [NSURLConnection sendSynchronousRequest:my_NSURLRequest returningResponse:&m

asynchronous nsurlconnection in nsoperation

2012-03-21 Thread Ariel Feinerman
Hi, I wish to insert an asynchronous NSURLConnection into non-concurrent NSOperation the reason is to allow necessarily unarchive actions on the streaming date so - (void) connection: (NSURLConnection *) connection didReceiveData: (NSData*) data { // Append the new data to receivedData. [_re