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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Jens Alfke <snej>
Submitted on:  Fri 02 Mar 2012 12:58:46 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: In Test

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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Mar 2012 09:10:14 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1