NSURLConnection retainCount at initialisation
NSURLConnection retainCount at initialisation
- Subject: NSURLConnection retainCount at initialisation
- From: Julien Palmas <email@hidden>
- Date: Sat, 19 Jun 2004 21:52:02 +0200
hi list
why do i get a retainCount of 2 when i create a NSURLConnection with
the following code ?
myURL = [NSURL URLWithString:@"
http://www.apple.com"];
myRequest = [NSMutableURLRequest requestWithURL:myURL];
myConnection = [NSURLConnection connectionWithRequest:myRequest
delegate:self];
myRequest retainCount = 1 (1 for creation, nothing for myConnection as
the NSURLRequest is deeply-copied by NSURLConnection)
myConnection retainCount = 2 (1 for creation, the otherone i don't
know) !!!
myURL retainCount = 4 (1 for creation, 1 for myRequest and 2 for
myConnection)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.