Re: SIGTRAP in NSURLConnection
Re: SIGTRAP in NSURLConnection
- Subject: Re: SIGTRAP in NSURLConnection
- From: Jerry Krinock <email@hidden>
- Date: Sat, 2 Jun 2007 06:07:24 -0700
On 2007 Jun, 01, at 23:16, Robert Nicholson wrote:
When used via an NSURLDownload what is the connections delegate?
It's not the same as the downloads delegate is it?
Since NSURLDownload uses NSURLConnection I'd figure the delegate
for the connection is the actual download object.
Sorry, I hadn't noticed that you were using NSURLDownload and not
NSURLConnection. But it still has a delegate and seems to work the
same way. Look at this documentation I've pasted in below. Whatever
you pass as the argument 'delegate' in the init' method is the
delegate. From the stack traces you pasted in, it appears that
NSURLDownload is attempting to send a message to the delegate after
the delegate has been deallocced.
API DOCUMENTATION:
- (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate
Parameters
request
The URL request to download. The request object is deep-copied as
part of the initialization process. Changes made to request after
this method returns do not affect the request that is used for the
loading process.
delegate
The delegate for the download. This object will receive delegate
messages as the download progresses. Delegate messages will be sent
on the thread which calls this method. For the download to work
correctly the calling thread’s run loop must be operating in the
default run loop mode.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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