[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #35686] NSURLConnection does not retain its delegate (compatibility
From: |
Jens Alfke |
Subject: |
[bug #35686] NSURLConnection does not retain its delegate (compatibility issue) |
Date: |
Fri, 02 Mar 2012 00:58:47 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.22 (KHTML, like Gecko) Chrome/19.0.1049.3 Safari/535.22 |
URL:
<http://savannah.gnu.org/bugs/?35686>
Summary: NSURLConnection does not retain its delegate
(compatibility issue)
Project: GNUstep
Submitted by: snej
Submitted on: Fri 02 Mar 2012 12:58:46 AM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
On OS X and iOS, "NSURLConnection retains its delegate when it is initialized.
It releases the delegate when the connection finishes loading, fails, or is
canceled." (From the NSURLConnection class reference overview.) This means the
application does not have to explicitly retain or release the delegate object
as long as it's an ephemeral object specific to that request (which is pretty
common.)
On GNUstep, however, this doesn't happen. This is very likely to lead to
incorrect behavior, most likely the app crashing when the NSURLConnection
tries to call the nonexistent delegate.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35686>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #35686] NSURLConnection does not retain its delegate (compatibility issue),
Jens Alfke <=