• 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: newbie question: NSURLConnection delegation and "method instance"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question: NSURLConnection delegation and "method instance"


  • Subject: Re: newbie question: NSURLConnection delegation and "method instance"
  • From: Scott Anguish <email@hidden>
  • Date: Sun, 20 Jul 2008 17:20:09 -0400

receivedData should be an instance variable of the class that contains the code in Listing 1 - Creating a connection using NSURLConnection.

often an instance of that class is also used as the delegate (which is what this example code is assuming)

the code for these snippets really needs to be available (and linked to) as a sample. it is on my to-do list. But if you file a bug, that may help push it up in the queue.


On 20-Jul-08, at 3:43 PM, JB Ashton wrote:

Hi all,

I'm struggling with "receivedData is declared as a method instance
elsewhere" in this explanation of NSURLConnection delegation:
http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html

When I declare the receivedData as NSMutableData in the delegate's header
file, I get this warning from the compiler: "warning: local declaration of
'receivedData' hides instance variable".



It sounds like on of the methods might also be declaring the variable name.. do a search for the receivedData string to find it.
_______________________________________________


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


References: 
 >newbie question: NSURLConnection delegation and "method instance" (From: "JB Ashton" <email@hidden>)

  • Prev by Date: Re: drawRect doesn't get called when using CoreAnimation?
  • Next by Date: Re: newbie question: NSURLConnection delegation and "method instance"
  • Previous by thread: newbie question: NSURLConnection delegation and "method instance"
  • Next by thread: Re: newbie question: NSURLConnection delegation and "method instance"
  • Index(es):
    • Date
    • Thread