bugGNUstep - Bugs: bug #35686, NSURLConnection does not retain...

Group
 
 

bug #35686: NSURLConnection does not retain its delegate (compatibility issue)

Submitter:  Jens Alfke <snej>
Submitted:  Fri 02 Mar 2012 12:58:46 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 02 Mar 2012 09:10:14 AM UTC, comment #1: 

Thanks ... I changed the code to try to mimic the OSX behaviour.
Please check that it works as expected.

Richard Frith-Macdonald <CaS>
Group Member
Fri 02 Mar 2012 12:58:46 AM UTC, original submission:  

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.

Jens Alfke <snej>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by snej (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-03-02 CaS StatusNone Fixed
        Open/ClosedOpen In Test

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code