NSURLConnection problems

Discussion in 'Mac Programming' started by bitviper, Feb 25, 2008.

  1. bitviper macrumors newbie

    Feb 18, 2008
    Hello Everyone,

    I have an array of NSURLConnection contained within an object which monitors their downloads. I initialize from the user interface, alloc the NSMutableArray witht the downloads and they begin. However, for some strange the connections are lost and I get a objsend message in the console.

    It does not appear within the same time frame, everytime but does appear. I'm on OS X Leopard with GC enabled!!!

    Please help.
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Try posting some code. Sounds like a memory related issue.
  3. bitviper thread starter macrumors newbie

    Feb 18, 2008
    Re: nsurlconnection problems

    Hello and thank you.

    I will post more when I get the chance to dig up the code. But it does like this:

    open panel w/ text box
    enter url hit ok button
    create a download object of nsmutablearray *links
    create nsurlconnection
    if (nsurlconnection) link addobject:nsurlconnection

    i am using garbage collection. the download class is just an array of link containing the nsurlconnections.

    if you like I can send you the source code, the project: email me:bitviper@mac.com


Share This Page