Do retained NSManagedObjects never fault, then?

On 30 September 2010 16:18, Dave DeLong <davedel...@me.com> wrote:
> I'd probably set the managed object as the delegate of your URL connection.  
> NSURLConnection retains its delegate, and NSURLConnection is itself retained 
> by the run loop, so you don't have to worry about the managed object 
> disappearing from underneath you.  Then you can simply clean up the 
> connection in the connection:didFailWithError: or connectionDidFinish: 
> delegate methods.
>
> Dave
>
> On Sep 30, 2010, at 7:41 AM, Jonathan del Strother wrote:
>
>> if my model refaults while a connection is in progress,
>> the connection ought to carry on uploading.  After the connection has
>> uploading, it doesn't actually need the model's attributes, so won't
>> trigger a new fetch.  So where am I supposed to release the
>> connection?
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to