newbie question: NSURLConnection delegation and "method instance"
newbie question: NSURLConnection delegation and "method instance"
- Subject: newbie question: NSURLConnection delegation and "method instance"
- From: "JB Ashton" <email@hidden>
- Date: Sun, 20 Jul 2008 12:43:01 -0700
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".
Where should I declare the receivedData variable so that it is available to
all the delegation methods (connection:didReceiveResponse:, etc.), but won't
be hidden by the local declaration above? Won't local declarations in each
delegate method refer to different NSMutableData objects?
Many thanks,
JB
_______________________________________________
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