On Fri, 13 Aug 2010 13:38:59 -0400, Michael Ash
said:
>On Thu, Aug 12, 2010 at 10:51 PM, yanghb wrote:
>> if the instance is released in delegate, what to perform the following
>> code?OK, maybe code segment will always be there, but if the code
>> access some instance vairable, it just will caus
On Thu, Aug 12, 2010 at 10:51 PM, yanghb wrote:
> if the instance is released in delegate, what to perform the following
> code?OK, maybe code segment will always be there, but if the code
> access some instance vairable, it just will cause EXEC_ACCESS_BAD,
> isn't it?
This is absolutely correct.
In my self-defined network handler function, I use a instance variable
"connection" to hold NSURLConnection alloced instance, when I will use
to load request, so the instance variable can be canceled some where.
and the instance will be released before next request performs.
that is,
if(connection
On Aug 12, 2010, at 11:06, Keary Suska wrote:
> If you really don't want (or can't have) an instance variable, you can
> init/alloc then release in connectionDidFinishLoading: and
> connection:didFailWithError:. I wouldn't recommend this though, as it is
> probably "bad form", but as long you
On Aug 12, 2010, at 1:41 PM, Conrad Shultz wrote:
> On Aug 12, 2010, at 11:06, Keary Suska wrote:
>
>> If you really don't want (or can't have) an instance variable, you can
>> init/alloc then release in connectionDidFinishLoading: and
>> connection:didFailWithError:. I wouldn't recommend this
On Aug 12, 2010, at 12:26 AM, Hunje Cho wrote:
> Hello,
>
> I'm just wondering whether autoreleased NSURLConnection object can
> finish its job before released. Like below codes.
>
> // connect to http server for downloading a large file
> NSURLConnection* con = [NSURLConnection connectionWithRe
Hello,
I'm just wondering whether autoreleased NSURLConnection object can
finish its job before released. Like below codes.
// connect to http server for downloading a large file
NSURLConnection* con = [NSURLConnection connectionWithRequest:request
delegate:self];
// con is not saved as property