• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
asynchronous nsurlconnection in nsoperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

asynchronous nsurlconnection in nsoperation


  • Subject: asynchronous nsurlconnection in nsoperation
  • From: Ariel Feinerman <email@hidden>
  • Date: Wed, 21 Mar 2012 18:59:19 +0300

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.

 [_receivedData appendData: data];

 if ([_receivedData length] >= MAX_CHUNK) {

// unarchive

// write to file

// [receivedData setLength: 0];

}

 }

Is there a correct way to do ?



--
best regards
Ariel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: asynchronous nsurlconnection in nsoperation
      • From: Steve Sisak <email@hidden>
    • Re: asynchronous nsurlconnection in nsoperation
      • From: Andreas Grosam <email@hidden>
    • Re: asynchronous nsurlconnection in nsoperation
      • From: Sebastian Celis <email@hidden>
    • Re: asynchronous nsurlconnection in nsoperation
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: How to get max size of view according to constraints?
  • Next by Date: Re: Installing & running Xcode
  • Previous by thread: RE: Delaying Between applicationWillResignActive and applicationDidEnterBackground
  • Next by thread: Re: asynchronous nsurlconnection in nsoperation
  • Index(es):
    • Date
    • Thread