how to write async function

Discussion in 'Mac Programming' started by i.yalovecky, Jun 30, 2010.

  1. i.yalovecky macrumors member

    Joined:
    Feb 24, 2010
    #1
    wanna write async function like NSURLConnection initWithRequest. What i need to learn for it?
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Do your heavy duty loading in the background via dispatch queues or threads. Then call back to your delegate on the main thread.
     

Share This Page