• 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: 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


  • Follow-Ups:
    • Re: SIGTRAP in NSURLConnection
      • From: Robert Nicholson <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>)

  • Prev by Date: Re: About Technical Q&A QA1518 - Using UTIs to Identify Image Files - what about Video?
  • Next by Date: NSTableView select a single cell
  • Previous by thread: Re: SIGTRAP in NSURLConnection
  • Next by thread: Re: SIGTRAP in NSURLConnection
  • Index(es):
    • Date
    • Thread