• 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
Re: SIGTRAP in NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SIGTRAP in NSURLConnection


  • Subject: Re: SIGTRAP in NSURLConnection
  • From: Robert Nicholson <email@hidden>
  • Date: Sun, 3 Jun 2007 09:40:19 +0700

Yes but the thing is I have a break on the delegate's (assuming NSURLConnection's delegate is the same as NSURLDownload which I doubt actually because the implementation of NSURLDownload would need the delegate methods itself) dealloc and it doesn't get there prior to the crash.

On Jun 2, 2007, at 8:07 PM, Jerry Krinock wrote:


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:
40gmail.com


This email sent to email@hidden

_______________________________________________

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


References: 
 >SIGTRAP in NSURLConnection (From: Robert Nicholson <email@hidden>)
 >Re: SIGTRAP in NSURLConnection (From: Jerry Krinock <email@hidden>)
 >Re: SIGTRAP in NSURLConnection (From: Robert Nicholson <email@hidden>)
 >Re: SIGTRAP in NSURLConnection (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Enabling NSButton
  • Next by Date: Re: Building Paths (was Enabling NSButton)
  • Previous by thread: Re: SIGTRAP in NSURLConnection
  • Next by thread: Re: NSMachPort vs. NSMessagePort
  • Index(es):
    • Date
    • Thread